From 9f2079ca6f4a1f42b25622d60449c942a03660a3 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 19 Nov 2024 02:37:00 +0000 Subject: [PATCH] chore: generate libraries at Tue Nov 19 02:30:20 UTC 2024 --- .../aiplatform/v1/EndpointServiceClient.java | 137 + .../v1/EndpointServiceSettings.java | 27 + .../cloud/aiplatform/v1/gapic_metadata.json | 3 + .../v1/stub/EndpointServiceStub.java | 14 + .../v1/stub/EndpointServiceStubSettings.java | 79 + .../v1/stub/GrpcEndpointServiceStub.java | 53 + .../reflect-config.json | 72 + .../reflect-config.json | 594 +++ .../v1/EndpointServiceClientTest.java | 79 + .../v1/MockEndpointServiceImpl.java | 21 + .../v1beta1/EvaluationServiceClientTest.java | 12 + .../aiplatform/v1/EndpointServiceGrpc.java | 130 +- .../aiplatform/v1/ClientConnectionConfig.java | 724 ++++ .../v1/ClientConnectionConfigOrBuilder.java | 61 + .../google/cloud/aiplatform/v1/Endpoint.java | 311 +- .../aiplatform/v1/EndpointOrBuilder.java | 38 +- .../cloud/aiplatform/v1/EndpointProto.java | 166 +- .../aiplatform/v1/EndpointServiceProto.java | 236 +- .../aiplatform/v1/NotebookExecutionJob.java | 1893 +++++++++- .../v1/NotebookExecutionJobOrBuilder.java | 43 + .../v1/NotebookExecutionJobProto.java | 124 +- .../v1/UpdateEndpointLongRunningRequest.java | 780 ++++ ...teEndpointLongRunningRequestOrBuilder.java | 73 + .../v1/UpdateEndpointOperationMetadata.java | 739 ++++ ...ateEndpointOperationMetadataOrBuilder.java | 61 + .../google/cloud/aiplatform/v1/endpoint.proto | 10 + .../aiplatform/v1/endpoint_service.proto | 30 + .../v1/notebook_execution_job.proto | 17 + .../v1beta1/EvaluateInstancesRequest.java | 1999 +++++++++- .../EvaluateInstancesRequestOrBuilder.java | 251 ++ .../v1beta1/EvaluateInstancesResponse.java | 3296 +++++++++++++---- .../EvaluateInstancesResponseOrBuilder.java | 252 ++ .../v1beta1/EvaluationServiceProto.java | 1296 +++++-- .../v1beta1/NotebookExecutionJob.java | 1909 +++++++++- .../NotebookExecutionJobOrBuilder.java | 43 + .../v1beta1/NotebookExecutionJobProto.java | 131 +- .../cloud/aiplatform/v1beta1/ToolCall.java | 879 +++++ .../aiplatform/v1beta1/ToolCallOrBuilder.java | 100 + .../v1beta1/ToolParameterKVMatchSpec.java | 8 +- .../ToolParameterKVMatchSpecOrBuilder.java | 2 +- .../cloud/aiplatform/v1beta1/Trajectory.java | 982 +++++ .../v1beta1/TrajectoryAnyOrderMatchInput.java | 1335 +++++++ ...TrajectoryAnyOrderMatchInputOrBuilder.java | 132 + .../TrajectoryAnyOrderMatchInstance.java | 1064 ++++++ ...jectoryAnyOrderMatchInstanceOrBuilder.java | 108 + .../TrajectoryAnyOrderMatchMetricValue.java | 589 +++ ...toryAnyOrderMatchMetricValueOrBuilder.java | 51 + .../TrajectoryAnyOrderMatchResults.java | 1040 ++++++ ...ajectoryAnyOrderMatchResultsOrBuilder.java | 92 + .../v1beta1/TrajectoryAnyOrderMatchSpec.java | 443 +++ .../TrajectoryAnyOrderMatchSpecOrBuilder.java | 25 + .../v1beta1/TrajectoryExactMatchInput.java | 1326 +++++++ .../TrajectoryExactMatchInputOrBuilder.java | 132 + .../v1beta1/TrajectoryExactMatchInstance.java | 1059 ++++++ ...TrajectoryExactMatchInstanceOrBuilder.java | 108 + .../TrajectoryExactMatchMetricValue.java | 588 +++ ...jectoryExactMatchMetricValueOrBuilder.java | 51 + .../v1beta1/TrajectoryExactMatchResults.java | 1033 ++++++ .../TrajectoryExactMatchResultsOrBuilder.java | 92 + .../v1beta1/TrajectoryExactMatchSpec.java | 438 +++ .../TrajectoryExactMatchSpecOrBuilder.java | 25 + .../v1beta1/TrajectoryInOrderMatchInput.java | 1334 +++++++ .../TrajectoryInOrderMatchInputOrBuilder.java | 132 + .../TrajectoryInOrderMatchInstance.java | 1064 ++++++ ...ajectoryInOrderMatchInstanceOrBuilder.java | 108 + .../TrajectoryInOrderMatchMetricValue.java | 588 +++ ...ctoryInOrderMatchMetricValueOrBuilder.java | 51 + .../TrajectoryInOrderMatchResults.java | 1037 ++++++ ...rajectoryInOrderMatchResultsOrBuilder.java | 92 + .../v1beta1/TrajectoryInOrderMatchSpec.java | 442 +++ .../TrajectoryInOrderMatchSpecOrBuilder.java | 25 + .../v1beta1/TrajectoryOrBuilder.java | 88 + .../v1beta1/TrajectoryPrecisionInput.java | 1323 +++++++ .../TrajectoryPrecisionInputOrBuilder.java | 131 + .../v1beta1/TrajectoryPrecisionInstance.java | 1059 ++++++ .../TrajectoryPrecisionInstanceOrBuilder.java | 108 + .../TrajectoryPrecisionMetricValue.java | 588 +++ ...ajectoryPrecisionMetricValueOrBuilder.java | 51 + .../v1beta1/TrajectoryPrecisionResults.java | 1031 ++++++ .../TrajectoryPrecisionResultsOrBuilder.java | 92 + .../v1beta1/TrajectoryPrecisionSpec.java | 435 +++ .../TrajectoryPrecisionSpecOrBuilder.java | 25 + .../v1beta1/TrajectoryRecallInput.java | 1313 +++++++ .../TrajectoryRecallInputOrBuilder.java | 130 + .../v1beta1/TrajectoryRecallInstance.java | 1056 ++++++ .../TrajectoryRecallInstanceOrBuilder.java | 108 + .../v1beta1/TrajectoryRecallMetricValue.java | 583 +++ .../TrajectoryRecallMetricValueOrBuilder.java | 51 + .../v1beta1/TrajectoryRecallResults.java | 1019 +++++ .../TrajectoryRecallResultsOrBuilder.java | 91 + .../v1beta1/TrajectoryRecallSpec.java | 435 +++ .../TrajectoryRecallSpecOrBuilder.java | 25 + .../v1beta1/TrajectorySingleToolUseInput.java | 1335 +++++++ ...TrajectorySingleToolUseInputOrBuilder.java | 132 + .../TrajectorySingleToolUseInstance.java | 765 ++++ ...jectorySingleToolUseInstanceOrBuilder.java | 67 + .../TrajectorySingleToolUseMetricValue.java | 589 +++ ...torySingleToolUseMetricValueOrBuilder.java | 51 + .../TrajectorySingleToolUseResults.java | 1040 ++++++ ...ajectorySingleToolUseResultsOrBuilder.java | 92 + .../v1beta1/TrajectorySingleToolUseSpec.java | 673 ++++ .../TrajectorySingleToolUseSpecOrBuilder.java | 63 + .../v1beta1/evaluation_service.proto | 291 +- .../v1beta1/notebook_execution_job.proto | 17 + .../AsyncUpdateEndpointLongRunning.java | 50 + .../AsyncUpdateEndpointLongRunningLRO.java | 50 + .../SyncUpdateEndpointLongRunning.java | 45 + ...SyncUpdateEndpointLongRunningEndpoint.java | 41 + .../reflect-config.json | 108 + .../DeveloperConnectClientHttpJsonTest.java | 11 + .../v1/DeveloperConnectClientTest.java | 9 + .../cloud/developerconnect/v1/Connection.java | 1527 +++++++- .../v1/ConnectionOrBuilder.java | 157 + .../developerconnect/v1/CryptoKeyConfig.java | 655 ++++ .../v1/CryptoKeyConfigOrBuilder.java | 59 + .../v1/DeveloperConnectProto.java | 703 ++-- .../v1/GitHubEnterpriseConfig.java | 2319 ++++++++++++ .../v1/GitHubEnterpriseConfigOrBuilder.java | 295 ++ .../developerconnect/v1/GitLabConfig.java | 1347 +++++++ .../v1/GitLabConfigOrBuilder.java | 160 + .../v1/GitLabEnterpriseConfig.java | 2261 +++++++++++ .../v1/GitLabEnterpriseConfigOrBuilder.java | 293 ++ .../v1/GitRepositoryLink.java | 182 + .../v1/GitRepositoryLinkOrBuilder.java | 25 + .../v1/OperationMetadata.java | 28 +- .../v1/OperationMetadataOrBuilder.java | 7 +- .../v1/ServiceDirectoryConfig.java | 656 ++++ .../v1/ServiceDirectoryConfigOrBuilder.java | 59 + .../developerconnect/v1/UserCredential.java | 837 +++++ .../v1/UserCredentialOrBuilder.java | 84 + .../v1/developer_connect.proto | 203 +- .../google/cloud/run/v2/ServiceScaling.java | 150 + .../cloud/run/v2/ServiceScalingOrBuilder.java | 31 + .../cloud/run/v2/VendorSettingsProto.java | 49 +- .../google/cloud/run/v2/vendor_settings.proto | 6 + 135 files changed, 57617 insertions(+), 1926 deletions(-) create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfig.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfigOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCall.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCallOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trajectory.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInput.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInputOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstance.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstanceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValue.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValueOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResults.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResultsOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpecOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInput.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInputOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstance.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstanceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValue.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValueOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResults.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResultsOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpecOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInput.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInputOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstance.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstanceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValue.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValueOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResults.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResultsOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpecOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInput.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInputOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstance.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstanceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValue.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValueOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResults.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResultsOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpecOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInput.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInputOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstance.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstanceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValue.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValueOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResults.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResultsOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpecOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInput.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInputOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstance.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstanceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValue.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValueOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResults.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResultsOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpecOrBuilder.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunning.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunningLRO.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunning.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunningEndpoint.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfig.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfigOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfig.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfigOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfig.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfigOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfig.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfigOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfig.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfigOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredential.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredentialOrBuilder.java diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java index 8b555b35372c..5d263762c231 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java @@ -159,6 +159,25 @@ * * * + *

UpdateEndpointLongRunning + *

Updates an Endpoint with a long running operation. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * *

DeleteEndpoint *

Deletes an Endpoint. * @@ -1047,6 +1066,124 @@ public final UnaryCallable updateEndpointCallab return stub.updateEndpointCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Endpoint with a long running operation. + * + *

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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   Endpoint endpoint = Endpoint.newBuilder().build();
+   *   Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(endpoint).get();
+   * }
+   * }
+ * + * @param endpoint Required. The Endpoint which replaces the resource on the server. Currently we + * only support updating the `client_connection_config` field, all the other fields' update + * will be blocked. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateEndpointLongRunningAsync(Endpoint endpoint) { + UpdateEndpointLongRunningRequest request = + UpdateEndpointLongRunningRequest.newBuilder().setEndpoint(endpoint).build(); + return updateEndpointLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Endpoint with a long running operation. + * + *

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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   UpdateEndpointLongRunningRequest request =
+   *       UpdateEndpointLongRunningRequest.newBuilder()
+   *           .setEndpoint(Endpoint.newBuilder().build())
+   *           .build();
+   *   Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(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 + updateEndpointLongRunningAsync(UpdateEndpointLongRunningRequest request) { + return updateEndpointLongRunningOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Endpoint with a long running operation. + * + *

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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   UpdateEndpointLongRunningRequest request =
+   *       UpdateEndpointLongRunningRequest.newBuilder()
+   *           .setEndpoint(Endpoint.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       endpointServiceClient.updateEndpointLongRunningOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Endpoint response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationCallable() { + return stub.updateEndpointLongRunningOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Endpoint with a long running operation. + * + *

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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   UpdateEndpointLongRunningRequest request =
+   *       UpdateEndpointLongRunningRequest.newBuilder()
+   *           .setEndpoint(Endpoint.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       endpointServiceClient.updateEndpointLongRunningCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateEndpointLongRunningCallable() { + return stub.updateEndpointLongRunningCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an Endpoint. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java index c48e8cc1a56e..bc1746c6de4d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java @@ -152,6 +152,20 @@ public UnaryCallSettings updateEndpointSettings return ((EndpointServiceStubSettings) getStubSettings()).updateEndpointSettings(); } + /** Returns the object with the settings used for calls to updateEndpointLongRunning. */ + public UnaryCallSettings + updateEndpointLongRunningSettings() { + return ((EndpointServiceStubSettings) getStubSettings()).updateEndpointLongRunningSettings(); + } + + /** Returns the object with the settings used for calls to updateEndpointLongRunning. */ + public OperationCallSettings< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings() { + return ((EndpointServiceStubSettings) getStubSettings()) + .updateEndpointLongRunningOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteEndpoint. */ public UnaryCallSettings deleteEndpointSettings() { return ((EndpointServiceStubSettings) getStubSettings()).deleteEndpointSettings(); @@ -353,6 +367,19 @@ public UnaryCallSettings.Builder updateEndpoint return getStubSettingsBuilder().updateEndpointSettings(); } + /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */ + public UnaryCallSettings.Builder + updateEndpointLongRunningSettings() { + return getStubSettingsBuilder().updateEndpointLongRunningSettings(); + } + + /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */ + public OperationCallSettings.Builder< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings() { + return getStubSettingsBuilder().updateEndpointLongRunningOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteEndpoint. */ public UnaryCallSettings.Builder deleteEndpointSettings() { return getStubSettingsBuilder().deleteEndpointSettings(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index 7cf6fb30d063..2b6da658b559 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -171,6 +171,9 @@ }, "UpdateEndpoint": { "methods": ["updateEndpoint", "updateEndpoint", "updateEndpointCallable"] + }, + "UpdateEndpointLongRunning": { + "methods": ["updateEndpointLongRunningAsync", "updateEndpointLongRunningAsync", "updateEndpointLongRunningOperationCallable", "updateEndpointLongRunningCallable"] } } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java index 3c77141dfcbc..3eafa6e91761 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java @@ -39,6 +39,8 @@ import com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata; import com.google.cloud.aiplatform.v1.UndeployModelRequest; import com.google.cloud.aiplatform.v1.UndeployModelResponse; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata; import com.google.cloud.aiplatform.v1.UpdateEndpointRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -93,6 +95,18 @@ public UnaryCallable updateEndpointCallable() { throw new UnsupportedOperationException("Not implemented: updateEndpointCallable()"); } + public OperationCallable< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateEndpointLongRunningOperationCallable()"); + } + + public UnaryCallable + updateEndpointLongRunningCallable() { + throw new UnsupportedOperationException("Not implemented: updateEndpointLongRunningCallable()"); + } + public OperationCallable deleteEndpointOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteEndpointOperationCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java index 5488e4e32bf5..0e52d9c16a57 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java @@ -62,6 +62,8 @@ import com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata; import com.google.cloud.aiplatform.v1.UndeployModelRequest; import com.google.cloud.aiplatform.v1.UndeployModelResponse; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata; import com.google.cloud.aiplatform.v1.UpdateEndpointRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -174,6 +176,11 @@ public class EndpointServiceStubSettings extends StubSettings listEndpointsSettings; private final UnaryCallSettings updateEndpointSettings; + private final UnaryCallSettings + updateEndpointLongRunningSettings; + private final OperationCallSettings< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings; private final UnaryCallSettings deleteEndpointSettings; private final OperationCallSettings deleteEndpointOperationSettings; @@ -330,6 +337,19 @@ public UnaryCallSettings updateEndpointSettings return updateEndpointSettings; } + /** Returns the object with the settings used for calls to updateEndpointLongRunning. */ + public UnaryCallSettings + updateEndpointLongRunningSettings() { + return updateEndpointLongRunningSettings; + } + + /** Returns the object with the settings used for calls to updateEndpointLongRunning. */ + public OperationCallSettings< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings() { + return updateEndpointLongRunningOperationSettings; + } + /** Returns the object with the settings used for calls to deleteEndpoint. */ public UnaryCallSettings deleteEndpointSettings() { return deleteEndpointSettings; @@ -492,6 +512,9 @@ protected EndpointServiceStubSettings(Builder settingsBuilder) throws IOExceptio getEndpointSettings = settingsBuilder.getEndpointSettings().build(); listEndpointsSettings = settingsBuilder.listEndpointsSettings().build(); updateEndpointSettings = settingsBuilder.updateEndpointSettings().build(); + updateEndpointLongRunningSettings = settingsBuilder.updateEndpointLongRunningSettings().build(); + updateEndpointLongRunningOperationSettings = + settingsBuilder.updateEndpointLongRunningOperationSettings().build(); deleteEndpointSettings = settingsBuilder.deleteEndpointSettings().build(); deleteEndpointOperationSettings = settingsBuilder.deleteEndpointOperationSettings().build(); deployModelSettings = settingsBuilder.deployModelSettings().build(); @@ -521,6 +544,11 @@ public static class Builder extends StubSettings.Builder listEndpointsSettings; private final UnaryCallSettings.Builder updateEndpointSettings; + private final UnaryCallSettings.Builder + updateEndpointLongRunningSettings; + private final OperationCallSettings.Builder< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings; private final UnaryCallSettings.Builder deleteEndpointSettings; private final OperationCallSettings.Builder< @@ -581,6 +609,8 @@ protected Builder(ClientContext clientContext) { getEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listEndpointsSettings = PagedCallSettings.newBuilder(LIST_ENDPOINTS_PAGE_STR_FACT); updateEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateEndpointLongRunningSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateEndpointLongRunningOperationSettings = OperationCallSettings.newBuilder(); deleteEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteEndpointOperationSettings = OperationCallSettings.newBuilder(); deployModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -601,6 +631,7 @@ protected Builder(ClientContext clientContext) { getEndpointSettings, listEndpointsSettings, updateEndpointSettings, + updateEndpointLongRunningSettings, deleteEndpointSettings, deployModelSettings, undeployModelSettings, @@ -621,6 +652,9 @@ protected Builder(EndpointServiceStubSettings settings) { getEndpointSettings = settings.getEndpointSettings.toBuilder(); listEndpointsSettings = settings.listEndpointsSettings.toBuilder(); updateEndpointSettings = settings.updateEndpointSettings.toBuilder(); + updateEndpointLongRunningSettings = settings.updateEndpointLongRunningSettings.toBuilder(); + updateEndpointLongRunningOperationSettings = + settings.updateEndpointLongRunningOperationSettings.toBuilder(); deleteEndpointSettings = settings.deleteEndpointSettings.toBuilder(); deleteEndpointOperationSettings = settings.deleteEndpointOperationSettings.toBuilder(); deployModelSettings = settings.deployModelSettings.toBuilder(); @@ -642,6 +676,7 @@ protected Builder(EndpointServiceStubSettings settings) { getEndpointSettings, listEndpointsSettings, updateEndpointSettings, + updateEndpointLongRunningSettings, deleteEndpointSettings, deployModelSettings, undeployModelSettings, @@ -686,6 +721,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .updateEndpointLongRunningSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteEndpointSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -756,6 +796,32 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .updateEndpointLongRunningOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Endpoint.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateEndpointOperationMetadata.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 .deleteEndpointOperationSettings() .setInitialCallSettings( @@ -902,6 +968,19 @@ public UnaryCallSettings.Builder updateEndpoint return updateEndpointSettings; } + /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */ + public UnaryCallSettings.Builder + updateEndpointLongRunningSettings() { + return updateEndpointLongRunningSettings; + } + + /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */ + public OperationCallSettings.Builder< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings() { + return updateEndpointLongRunningOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteEndpoint. */ public UnaryCallSettings.Builder deleteEndpointSettings() { return deleteEndpointSettings; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java index 5cba25ef2c79..1b1a625aab86 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java @@ -44,6 +44,8 @@ import com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata; import com.google.cloud.aiplatform.v1.UndeployModelRequest; import com.google.cloud.aiplatform.v1.UndeployModelResponse; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata; import com.google.cloud.aiplatform.v1.UpdateEndpointRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -110,6 +112,17 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Endpoint.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateEndpointLongRunningMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.EndpointService/UpdateEndpointLongRunning") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateEndpointLongRunningRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteEndpointMethodDescriptor = MethodDescriptor.newBuilder() @@ -202,6 +215,11 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub { private final UnaryCallable listEndpointsPagedCallable; private final UnaryCallable updateEndpointCallable; + private final UnaryCallable + updateEndpointLongRunningCallable; + private final OperationCallable< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationCallable; private final UnaryCallable deleteEndpointCallable; private final OperationCallable deleteEndpointOperationCallable; @@ -312,6 +330,17 @@ protected GrpcEndpointServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + updateEndpointLongRunningTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateEndpointLongRunningMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("endpoint.name", String.valueOf(request.getEndpoint().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEndpointMethodDescriptor) @@ -425,6 +454,17 @@ protected GrpcEndpointServiceStub( this.updateEndpointCallable = callableFactory.createUnaryCallable( updateEndpointTransportSettings, settings.updateEndpointSettings(), clientContext); + this.updateEndpointLongRunningCallable = + callableFactory.createUnaryCallable( + updateEndpointLongRunningTransportSettings, + settings.updateEndpointLongRunningSettings(), + clientContext); + this.updateEndpointLongRunningOperationCallable = + callableFactory.createOperationCallable( + updateEndpointLongRunningTransportSettings, + settings.updateEndpointLongRunningOperationSettings(), + clientContext, + operationsStub); this.deleteEndpointCallable = callableFactory.createUnaryCallable( deleteEndpointTransportSettings, settings.deleteEndpointSettings(), clientContext); @@ -524,6 +564,19 @@ public UnaryCallable updateEndpointCallable() { return updateEndpointCallable; } + @Override + public UnaryCallable + updateEndpointLongRunningCallable() { + return updateEndpointLongRunningCallable; + } + + @Override + public OperationCallable< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationCallable() { + return updateEndpointLongRunningOperationCallable; + } + @Override public UnaryCallable deleteEndpointCallable() { return deleteEndpointCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index c7bc66d5aa52..07e589350a8f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -1790,6 +1790,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ClientConnectionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ClientConnectionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CoherenceInput", "queryAllDeclaredConstructors": true, @@ -12158,6 +12176,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$CustomEnvironmentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$CustomEnvironmentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$DataformRepositorySource", "queryAllDeclaredConstructors": true, @@ -17774,6 +17810,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.UpdateEndpointRequest", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index bc40f9d5fb12..2113fd138fa7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -14543,6 +14543,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource", "queryAllDeclaredConstructors": true, @@ -20483,6 +20501,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInput", "queryAllDeclaredConstructors": true, @@ -20933,6 +20969,564 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Trajectory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Trajectory$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.Trial", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java index e7e277cc1f3a..6247830ae818 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java @@ -134,6 +134,7 @@ public void createEndpointTest() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -207,6 +208,7 @@ public void createEndpointTest2() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -280,6 +282,7 @@ public void createEndpointTest3() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -356,6 +359,7 @@ public void createEndpointTest4() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -432,6 +436,7 @@ public void getEndpointTest() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -496,6 +501,7 @@ public void getEndpointTest2() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -646,6 +652,7 @@ public void updateEndpointTest() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -684,6 +691,78 @@ public void updateEndpointExceptionTest() throws Exception { } } + @Test + public void updateEndpointLongRunningTest() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDeployedModels(new ArrayList()) + .putAllTrafficSplit(new HashMap()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setNetwork("network1843485230") + .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) + .setModelDeploymentMonitoringJob( + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") + .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) + .setDedicatedEndpointEnabled(true) + .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateEndpointLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEndpointService.addResponse(resultOperation); + + Endpoint endpoint = Endpoint.newBuilder().build(); + + Endpoint actualResponse = client.updateEndpointLongRunningAsync(endpoint).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateEndpointLongRunningRequest actualRequest = + ((UpdateEndpointLongRunningRequest) actualRequests.get(0)); + + Assert.assertEquals(endpoint, actualRequest.getEndpoint()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateEndpointLongRunningExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEndpointService.addException(exception); + + try { + Endpoint endpoint = Endpoint.newBuilder().build(); + client.updateEndpointLongRunningAsync(endpoint).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 deleteEndpointTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java index a50595d45eae..52b9b960f088 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java @@ -142,6 +142,27 @@ public void updateEndpoint( } } + @Override + public void updateEndpointLongRunning( + UpdateEndpointLongRunningRequest 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 UpdateEndpointLongRunning, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteEndpoint( DeleteEndpointRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java index 16f30f10d166..0114dc849e81 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java @@ -158,6 +158,18 @@ public void evaluateInstancesTest() throws Exception { request.getToolParameterKeyMatchInput(), actualRequest.getToolParameterKeyMatchInput()); Assert.assertEquals( request.getToolParameterKvMatchInput(), actualRequest.getToolParameterKvMatchInput()); + Assert.assertEquals( + request.getTrajectoryExactMatchInput(), actualRequest.getTrajectoryExactMatchInput()); + Assert.assertEquals( + request.getTrajectoryInOrderMatchInput(), actualRequest.getTrajectoryInOrderMatchInput()); + Assert.assertEquals( + request.getTrajectoryAnyOrderMatchInput(), actualRequest.getTrajectoryAnyOrderMatchInput()); + Assert.assertEquals( + request.getTrajectoryPrecisionInput(), actualRequest.getTrajectoryPrecisionInput()); + Assert.assertEquals( + request.getTrajectoryRecallInput(), actualRequest.getTrajectoryRecallInput()); + Assert.assertEquals( + request.getTrajectorySingleToolUseInput(), actualRequest.getTrajectorySingleToolUseInput()); Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); Assert.assertTrue( channelProvider.isHeaderSent( diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java index 6e19931d9c98..d5b73eb48b6d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java @@ -217,6 +217,57 @@ private EndpointServiceGrpc() {} return getUpdateEndpointMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest, + com.google.longrunning.Operation> + getUpdateEndpointLongRunningMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEndpointLongRunning", + requestType = com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest, + com.google.longrunning.Operation> + getUpdateEndpointLongRunningMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest, + com.google.longrunning.Operation> + getUpdateEndpointLongRunningMethod; + if ((getUpdateEndpointLongRunningMethod = + EndpointServiceGrpc.getUpdateEndpointLongRunningMethod) + == null) { + synchronized (EndpointServiceGrpc.class) { + if ((getUpdateEndpointLongRunningMethod = + EndpointServiceGrpc.getUpdateEndpointLongRunningMethod) + == null) { + EndpointServiceGrpc.getUpdateEndpointLongRunningMethod = + getUpdateEndpointLongRunningMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateEndpointLongRunning")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new EndpointServiceMethodDescriptorSupplier("UpdateEndpointLongRunning")) + .build(); + } + } + } + return getUpdateEndpointLongRunningMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.DeleteEndpointRequest, com.google.longrunning.Operation> getDeleteEndpointMethod; @@ -501,6 +552,20 @@ default void updateEndpoint( getUpdateEndpointMethod(), responseObserver); } + /** + * + * + *
+     * Updates an Endpoint with a long running operation.
+     * 
+ */ + default void updateEndpointLongRunning( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEndpointLongRunningMethod(), responseObserver); + } + /** * * @@ -661,6 +726,22 @@ public void updateEndpoint( responseObserver); } + /** + * + * + *
+     * Updates an Endpoint with a long running operation.
+     * 
+ */ + public void updateEndpointLongRunning( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEndpointLongRunningMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -801,6 +882,19 @@ public com.google.cloud.aiplatform.v1.Endpoint updateEndpoint( getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates an Endpoint with a long running operation.
+     * 
+ */ + public com.google.longrunning.Operation updateEndpointLongRunning( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -932,6 +1026,20 @@ protected EndpointServiceFutureStub build( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Updates an Endpoint with a long running operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateEndpointLongRunning( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEndpointLongRunningMethod(), getCallOptions()), request); + } + /** * * @@ -993,10 +1101,11 @@ protected EndpointServiceFutureStub build( private static final int METHODID_GET_ENDPOINT = 1; private static final int METHODID_LIST_ENDPOINTS = 2; private static final int METHODID_UPDATE_ENDPOINT = 3; - private static final int METHODID_DELETE_ENDPOINT = 4; - private static final int METHODID_DEPLOY_MODEL = 5; - private static final int METHODID_UNDEPLOY_MODEL = 6; - private static final int METHODID_MUTATE_DEPLOYED_MODEL = 7; + private static final int METHODID_UPDATE_ENDPOINT_LONG_RUNNING = 4; + private static final int METHODID_DELETE_ENDPOINT = 5; + private static final int METHODID_DEPLOY_MODEL = 6; + private static final int METHODID_UNDEPLOY_MODEL = 7; + private static final int METHODID_MUTATE_DEPLOYED_MODEL = 8; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1038,6 +1147,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_ENDPOINT_LONG_RUNNING: + serviceImpl.updateEndpointLongRunning( + (com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_ENDPOINT: serviceImpl.deleteEndpoint( (com.google.cloud.aiplatform.v1.DeleteEndpointRequest) request, @@ -1101,6 +1215,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1.UpdateEndpointRequest, com.google.cloud.aiplatform.v1.Endpoint>(service, METHODID_UPDATE_ENDPOINT))) + .addMethod( + getUpdateEndpointLongRunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_ENDPOINT_LONG_RUNNING))) .addMethod( getDeleteEndpointMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1180,6 +1301,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetEndpointMethod()) .addMethod(getListEndpointsMethod()) .addMethod(getUpdateEndpointMethod()) + .addMethod(getUpdateEndpointLongRunningMethod()) .addMethod(getDeleteEndpointMethod()) .addMethod(getDeployModelMethod()) .addMethod(getUndeployModelMethod()) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfig.java new file mode 100644 index 000000000000..4b4fe105e24f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfig.java @@ -0,0 +1,724 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1/endpoint.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configurations (e.g. inference timeout) that are applied on your endpoints.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ClientConnectionConfig} + */ +public final class ClientConnectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ClientConnectionConfig) + ClientConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientConnectionConfig.newBuilder() to construct. + private ClientConnectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientConnectionConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientConnectionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ClientConnectionConfig.class, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder.class); + } + + private int bitField0_; + public static final int INFERENCE_TIMEOUT_FIELD_NUMBER = 1; + private com.google.protobuf.Duration inferenceTimeout_; + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return Whether the inferenceTimeout field is set. + */ + @java.lang.Override + public boolean hasInferenceTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return The inferenceTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getInferenceTimeout() { + return inferenceTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inferenceTimeout_; + } + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder() { + return inferenceTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inferenceTimeout_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInferenceTimeout()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInferenceTimeout()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ClientConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ClientConnectionConfig other = + (com.google.cloud.aiplatform.v1.ClientConnectionConfig) obj; + + if (hasInferenceTimeout() != other.hasInferenceTimeout()) return false; + if (hasInferenceTimeout()) { + if (!getInferenceTimeout().equals(other.getInferenceTimeout())) 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 (hasInferenceTimeout()) { + hash = (37 * hash) + INFERENCE_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getInferenceTimeout().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ClientConnectionConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configurations (e.g. inference timeout) that are applied on your endpoints.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ClientConnectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ClientConnectionConfig) + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ClientConnectionConfig.class, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ClientConnectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInferenceTimeoutFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inferenceTimeout_ = null; + if (inferenceTimeoutBuilder_ != null) { + inferenceTimeoutBuilder_.dispose(); + inferenceTimeoutBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfig build() { + com.google.cloud.aiplatform.v1.ClientConnectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfig buildPartial() { + com.google.cloud.aiplatform.v1.ClientConnectionConfig result = + new com.google.cloud.aiplatform.v1.ClientConnectionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ClientConnectionConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inferenceTimeout_ = + inferenceTimeoutBuilder_ == null ? inferenceTimeout_ : inferenceTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ClientConnectionConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.ClientConnectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ClientConnectionConfig other) { + if (other == com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance()) + return this; + if (other.hasInferenceTimeout()) { + mergeInferenceTimeout(other.getInferenceTimeout()); + } + 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( + getInferenceTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.Duration inferenceTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + inferenceTimeoutBuilder_; + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return Whether the inferenceTimeout field is set. + */ + public boolean hasInferenceTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return The inferenceTimeout. + */ + public com.google.protobuf.Duration getInferenceTimeout() { + if (inferenceTimeoutBuilder_ == null) { + return inferenceTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inferenceTimeout_; + } else { + return inferenceTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public Builder setInferenceTimeout(com.google.protobuf.Duration value) { + if (inferenceTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inferenceTimeout_ = value; + } else { + inferenceTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public Builder setInferenceTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (inferenceTimeoutBuilder_ == null) { + inferenceTimeout_ = builderForValue.build(); + } else { + inferenceTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public Builder mergeInferenceTimeout(com.google.protobuf.Duration value) { + if (inferenceTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && inferenceTimeout_ != null + && inferenceTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInferenceTimeoutBuilder().mergeFrom(value); + } else { + inferenceTimeout_ = value; + } + } else { + inferenceTimeoutBuilder_.mergeFrom(value); + } + if (inferenceTimeout_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public Builder clearInferenceTimeout() { + bitField0_ = (bitField0_ & ~0x00000001); + inferenceTimeout_ = null; + if (inferenceTimeoutBuilder_ != null) { + inferenceTimeoutBuilder_.dispose(); + inferenceTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public com.google.protobuf.Duration.Builder getInferenceTimeoutBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInferenceTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder() { + if (inferenceTimeoutBuilder_ != null) { + return inferenceTimeoutBuilder_.getMessageOrBuilder(); + } else { + return inferenceTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inferenceTimeout_; + } + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getInferenceTimeoutFieldBuilder() { + if (inferenceTimeoutBuilder_ == null) { + inferenceTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getInferenceTimeout(), getParentForChildren(), isClean()); + inferenceTimeout_ = null; + } + return inferenceTimeoutBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ClientConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ClientConnectionConfig) + private static final com.google.cloud.aiplatform.v1.ClientConnectionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ClientConnectionConfig(); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientConnectionConfig 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.aiplatform.v1.ClientConnectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfigOrBuilder.java new file mode 100644 index 000000000000..ec32e9d16ab2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfigOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1/endpoint.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ClientConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ClientConnectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return Whether the inferenceTimeout field is set. + */ + boolean hasInferenceTimeout(); + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return The inferenceTimeout. + */ + com.google.protobuf.Duration getInferenceTimeout(); + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java index 68017a7abedc..f0538eabe92e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java @@ -914,7 +914,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -1196,6 +1196,57 @@ public com.google.protobuf.ByteString getDedicatedEndpointDnsBytes() { } } + public static final int CLIENT_CONNECTION_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.aiplatform.v1.ClientConnectionConfig clientConnectionConfig_; + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * @return Whether the clientConnectionConfig field is set. + */ + @java.lang.Override + public boolean hasClientConnectionConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * @return The clientConnectionConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfig getClientConnectionConfig() { + return clientConnectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder + getClientConnectionConfigOrBuilder() { + return clientConnectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } + public static final int SATISFIES_PZS_FIELD_NUMBER = 27; private boolean satisfiesPzs_ = false; /** @@ -1289,6 +1340,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(21, getPrivateServiceConnectConfig()); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(23, getClientConnectionConfig()); + } if (dedicatedEndpointEnabled_ != false) { output.writeBool(24, dedicatedEndpointEnabled_); } @@ -1376,6 +1430,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 21, getPrivateServiceConnectConfig()); } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig()); + } if (dedicatedEndpointEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, dedicatedEndpointEnabled_); } @@ -1439,6 +1497,10 @@ public boolean equals(final java.lang.Object obj) { } if (getDedicatedEndpointEnabled() != other.getDedicatedEndpointEnabled()) return false; if (!getDedicatedEndpointDns().equals(other.getDedicatedEndpointDns())) return false; + if (hasClientConnectionConfig() != other.hasClientConnectionConfig()) return false; + if (hasClientConnectionConfig()) { + if (!getClientConnectionConfig().equals(other.getClientConnectionConfig())) return false; + } if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1502,6 +1564,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDedicatedEndpointEnabled()); hash = (37 * hash) + DEDICATED_ENDPOINT_DNS_FIELD_NUMBER; hash = (53 * hash) + getDedicatedEndpointDns().hashCode(); + if (hasClientConnectionConfig()) { + hash = (37 * hash) + CLIENT_CONNECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getClientConnectionConfig().hashCode(); + } hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; @@ -1679,6 +1745,7 @@ private void maybeForceBuilderInitialization() { getEncryptionSpecFieldBuilder(); getPrivateServiceConnectConfigFieldBuilder(); getPredictRequestResponseLoggingConfigFieldBuilder(); + getClientConnectionConfigFieldBuilder(); } } @@ -1729,6 +1796,11 @@ public Builder clear() { } dedicatedEndpointEnabled_ = false; dedicatedEndpointDns_ = ""; + clientConnectionConfig_ = null; + if (clientConnectionConfigBuilder_ != null) { + clientConnectionConfigBuilder_.dispose(); + clientConnectionConfigBuilder_ = null; + } satisfiesPzs_ = false; satisfiesPzi_ = false; return this; @@ -1844,9 +1916,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Endpoint result) { result.dedicatedEndpointDns_ = dedicatedEndpointDns_; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.satisfiesPzs_ = satisfiesPzs_; + result.clientConnectionConfig_ = + clientConnectionConfigBuilder_ == null + ? clientConnectionConfig_ + : clientConnectionConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00040000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; } result.bitField0_ |= to_bitField0_; @@ -1984,6 +2063,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) { bitField0_ |= 0x00010000; onChanged(); } + if (other.hasClientConnectionConfig()) { + mergeClientConnectionConfig(other.getClientConnectionConfig()); + } if (other.getSatisfiesPzs() != false) { setSatisfiesPzs(other.getSatisfiesPzs()); } @@ -2128,6 +2210,13 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 170 + case 186: + { + input.readMessage( + getClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 case 192: { dedicatedEndpointEnabled_ = input.readBool(); @@ -2143,13 +2232,13 @@ public Builder mergeFrom( case 216: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 216 case 224: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 224 default: @@ -4328,7 +4417,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -4351,7 +4440,7 @@ public boolean getEnablePrivateServiceConnect() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ @@ -4378,7 +4467,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5179,6 +5268,206 @@ public Builder setDedicatedEndpointDnsBytes(com.google.protobuf.ByteString value return this; } + private com.google.cloud.aiplatform.v1.ClientConnectionConfig clientConnectionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ClientConnectionConfig, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder, + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder> + clientConnectionConfigBuilder_; + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * + * @return Whether the clientConnectionConfig field is set. + */ + public boolean hasClientConnectionConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * + * @return The clientConnectionConfig. + */ + public com.google.cloud.aiplatform.v1.ClientConnectionConfig getClientConnectionConfig() { + if (clientConnectionConfigBuilder_ == null) { + return clientConnectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } else { + return clientConnectionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public Builder setClientConnectionConfig( + com.google.cloud.aiplatform.v1.ClientConnectionConfig value) { + if (clientConnectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientConnectionConfig_ = value; + } else { + clientConnectionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public Builder setClientConnectionConfig( + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder builderForValue) { + if (clientConnectionConfigBuilder_ == null) { + clientConnectionConfig_ = builderForValue.build(); + } else { + clientConnectionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public Builder mergeClientConnectionConfig( + com.google.cloud.aiplatform.v1.ClientConnectionConfig value) { + if (clientConnectionConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && clientConnectionConfig_ != null + && clientConnectionConfig_ + != com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance()) { + getClientConnectionConfigBuilder().mergeFrom(value); + } else { + clientConnectionConfig_ = value; + } + } else { + clientConnectionConfigBuilder_.mergeFrom(value); + } + if (clientConnectionConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public Builder clearClientConnectionConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + clientConnectionConfig_ = null; + if (clientConnectionConfigBuilder_ != null) { + clientConnectionConfigBuilder_.dispose(); + clientConnectionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder + getClientConnectionConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getClientConnectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder + getClientConnectionConfigOrBuilder() { + if (clientConnectionConfigBuilder_ != null) { + return clientConnectionConfigBuilder_.getMessageOrBuilder(); + } else { + return clientConnectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ClientConnectionConfig, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder, + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder> + getClientConnectionConfigFieldBuilder() { + if (clientConnectionConfigBuilder_ == null) { + clientConnectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ClientConnectionConfig, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder, + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder>( + getClientConnectionConfig(), getParentForChildren(), isClean()); + clientConnectionConfig_ = null; + } + return clientConnectionConfigBuilder_; + } + private boolean satisfiesPzs_; /** * @@ -5210,7 +5499,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5226,7 +5515,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); satisfiesPzs_ = false; onChanged(); return this; @@ -5263,7 +5552,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5279,7 +5568,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); satisfiesPzi_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java index d3da5ec58771..a4c20b8d6ade 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java @@ -585,7 +585,7 @@ java.lang.String getLabelsOrDefault( * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @return The enablePrivateServiceConnect. */ @java.lang.Deprecated @@ -775,6 +775,42 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getDedicatedEndpointDnsBytes(); + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * @return Whether the clientConnectionConfig field is set. + */ + boolean hasClientConnectionConfig(); + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * @return The clientConnectionConfig. + */ + com.google.cloud.aiplatform.v1.ClientConnectionConfig getClientConnectionConfig(); + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + */ + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder + getClientConnectionConfigOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java index f4a9542669fb..f70d3efac478 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java @@ -60,6 +60,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_FasterDeploymentConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_FasterDeploymentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -78,79 +82,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d/aiplatform/v1/io.proto\0322google/cloud/a" + "iplatform/v1/machine_resources.proto\0323go" + "ogle/cloud/aiplatform/v1/service_network" - + "ing.proto\032\037google/protobuf/timestamp.pro" - + "to\"\251\n\n\010Endpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014di" - + "splay_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001" - + "(\t\022G\n\017deployed_models\030\004 \003(\0132).google.clo" - + "ud.aiplatform.v1.DeployedModelB\003\340A\003\022M\n\rt" - + "raffic_split\030\005 \003(\01326.google.cloud.aiplat" - + "form.v1.Endpoint.TrafficSplitEntry\022\014\n\004et" - + "ag\030\006 \001(\t\022@\n\006labels\030\007 \003(\01320.google.cloud." - + "aiplatform.v1.Endpoint.LabelsEntry\0224\n\013cr" - + "eate_time\030\010 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022C\n\017encryption_spe" - + "c\030\n \001(\0132*.google.cloud.aiplatform.v1.Enc" - + "ryptionSpec\0227\n\007network\030\r \001(\tB&\340A\001\372A \n\036co" - + "mpute.googleapis.com/Network\022*\n\036enable_p" - + "rivate_service_connect\030\021 \001(\010B\002\030\001\022d\n\036priv" - + "ate_service_connect_config\030\025 \001(\01327.googl" - + "e.cloud.aiplatform.v1.PrivateServiceConn" - + "ectConfigB\003\340A\001\022g\n\037model_deployment_monit" - + "oring_job\030\016 \001(\tB>\340A\003\372A8\n6aiplatform.goog" - + "leapis.com/ModelDeploymentMonitoringJob\022" - + "p\n\'predict_request_response_logging_conf" - + "ig\030\022 \001(\0132?.google.cloud.aiplatform.v1.Pr" - + "edictRequestResponseLoggingConfig\022\"\n\032ded" - + "icated_endpoint_enabled\030\030 \001(\010\022#\n\026dedicat" - + "ed_endpoint_dns\030\031 \001(\tB\003\340A\003\022\032\n\rsatisfies_" - + "pzs\030\033 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\034 \001(\010B\003\340" - + "A\003\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aiplatfor" - + "m.googleapis.com/Endpoint\022cloud.google.com/go/aipl" - + "atform/apiv1/aiplatformpb;aiplatformpb\252\002" - + "\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Clo" - + "ud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlat" - + "form::V1b\006proto3" + + "ing.proto\032\036google/protobuf/duration.prot" + + "o\032\037google/protobuf/timestamp.proto\"\377\n\n\010E" + + "ndpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022G\n\017de" + + "ployed_models\030\004 \003(\0132).google.cloud.aipla" + + "tform.v1.DeployedModelB\003\340A\003\022M\n\rtraffic_s" + + "plit\030\005 \003(\01326.google.cloud.aiplatform.v1." + + "Endpoint.TrafficSplitEntry\022\014\n\004etag\030\006 \001(\t" + + "\022@\n\006labels\030\007 \003(\01320.google.cloud.aiplatfo" + + "rm.v1.Endpoint.LabelsEntry\0224\n\013create_tim" + + "e\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\t \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022C\n\017encryption_spec\030\n \001(\0132" + + "*.google.cloud.aiplatform.v1.EncryptionS" + + "pec\0227\n\007network\030\r \001(\tB&\340A\001\372A \n\036compute.go" + + "ogleapis.com/Network\022*\n\036enable_private_s" + + "ervice_connect\030\021 \001(\010B\002\030\001\022d\n\036private_serv" + + "ice_connect_config\030\025 \001(\01327.google.cloud." + + "aiplatform.v1.PrivateServiceConnectConfi" + + "gB\003\340A\001\022g\n\037model_deployment_monitoring_jo" + + "b\030\016 \001(\tB>\340A\003\372A8\n6aiplatform.googleapis.c" + + "om/ModelDeploymentMonitoringJob\022p\n\'predi" + + "ct_request_response_logging_config\030\022 \001(\013" + + "2?.google.cloud.aiplatform.v1.PredictReq" + + "uestResponseLoggingConfig\022\"\n\032dedicated_e" + + "ndpoint_enabled\030\030 \001(\010\022#\n\026dedicated_endpo" + + "int_dns\030\031 \001(\tB\003\340A\003\022T\n\030client_connection_" + + "config\030\027 \001(\01322.google.cloud.aiplatform.v" + + "1.ClientConnectionConfig\022\032\n\rsatisfies_pz" + + "s\030\033 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\034 \001(\010B\003\340A\003" + + "\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aiplatform." + + "googleapis.com/Endpoint\022cloud.google.com/go/aiplat" + + "form/apiv1/aiplatformpb;aiplatformpb\252\002\032G" + + "oogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud" + + "\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfo" + + "rm::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -163,6 +172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(), com.google.cloud.aiplatform.v1.ServiceNetworkingProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1_Endpoint_descriptor = @@ -188,6 +198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PredictRequestResponseLoggingConfig", "DedicatedEndpointEnabled", "DedicatedEndpointDns", + "ClientConnectionConfig", "SatisfiesPzs", "SatisfiesPzi", }); @@ -263,6 +274,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FastTryoutEnabled", }); + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor, + new java.lang.String[] { + "InferenceTimeout", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -277,6 +296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(); com.google.cloud.aiplatform.v1.ServiceNetworkingProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java index 994d51f8b0cb..c8cdf943b3c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_UpdateEndpointRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_UpdateEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,97 +147,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\212\001\n\025UpdateEndpointRequest\022;\n\010endpoint\030\001 " + "\001(\0132$.google.cloud.aiplatform.v1.Endpoin" + "tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\002\"Q\n\025DeleteEndpointRe" - + "quest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform." - + "googleapis.com/Endpoint\"\250\002\n\022DeployModelR" - + "equest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplat" - + "form.googleapis.com/Endpoint\022F\n\016deployed" - + "_model\030\002 \001(\0132).google.cloud.aiplatform.v" - + "1.DeployedModelB\003\340A\002\022W\n\rtraffic_split\030\003 " - + "\003(\0132@.google.cloud.aiplatform.v1.DeployM" - + "odelRequest.TrafficSplitEntry\0323\n\021Traffic" - + "SplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\002" - + "8\001\"X\n\023DeployModelResponse\022A\n\016deployed_mo" - + "del\030\001 \001(\0132).google.cloud.aiplatform.v1.D" - + "eployedModel\"n\n\034DeployModelOperationMeta" - + "data\022N\n\020generic_metadata\030\001 \001(\01324.google." - + "cloud.aiplatform.v1.GenericOperationMeta" - + "data\"\204\002\n\024UndeployModelRequest\022<\n\010endpoin" - + "t\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.c" - + "om/Endpoint\022\036\n\021deployed_model_id\030\002 \001(\tB\003" - + "\340A\002\022Y\n\rtraffic_split\030\003 \003(\0132B.google.clou" - + "d.aiplatform.v1.UndeployModelRequest.Tra" - + "fficSplitEntry\0323\n\021TrafficSplitEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\"\027\n\025UndeployM" - + "odelResponse\"p\n\036UndeployModelOperationMe" - + "tadata\022N\n\020generic_metadata\030\001 \001(\01324.googl" - + "e.cloud.aiplatform.v1.GenericOperationMe" - + "tadata\"\330\001\n\032MutateDeployedModelRequest\022<\n" - + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.goog" - + "leapis.com/Endpoint\022F\n\016deployed_model\030\002 " - + "\001(\0132).google.cloud.aiplatform.v1.Deploye" - + "dModelB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"`\n\033MutateDeplo" - + "yedModelResponse\022A\n\016deployed_model\030\001 \001(\013" - + "2).google.cloud.aiplatform.v1.DeployedMo" - + "del\"v\n$MutateDeployedModelOperationMetad" - + "ata\022N\n\020generic_metadata\030\001 \001(\01324.google.c" - + "loud.aiplatform.v1.GenericOperationMetad" - + "ata2\256\017\n\017EndpointService\022\202\002\n\016CreateEndpoi" - + "nt\0221.google.cloud.aiplatform.v1.CreateEn" + + "tobuf.FieldMaskB\003\340A\002\"_\n UpdateEndpointLo" + + "ngRunningRequest\022;\n\010endpoint\030\001 \001(\0132$.goo" + + "gle.cloud.aiplatform.v1.EndpointB\003\340A\002\"q\n" + + "\037UpdateEndpointOperationMetadata\022N\n\020gene" + + "ric_metadata\030\001 \001(\01324.google.cloud.aiplat" + + "form.v1.GenericOperationMetadata\"Q\n\025Dele" + + "teEndpointRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"aiplatform.googleapis.com/Endpoint\"\250\002\n\022" + + "DeployModelRequest\022<\n\010endpoint\030\001 \001(\tB*\340A" + + "\002\372A$\n\"aiplatform.googleapis.com/Endpoint" + + "\022F\n\016deployed_model\030\002 \001(\0132).google.cloud." + + "aiplatform.v1.DeployedModelB\003\340A\002\022W\n\rtraf" + + "fic_split\030\003 \003(\0132@.google.cloud.aiplatfor" + + "m.v1.DeployModelRequest.TrafficSplitEntr" + + "y\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\005:\0028\001\"X\n\023DeployModelResponse\022A\n" + + "\016deployed_model\030\001 \001(\0132).google.cloud.aip" + + "latform.v1.DeployedModel\"n\n\034DeployModelO" + + "perationMetadata\022N\n\020generic_metadata\030\001 \001" + + "(\01324.google.cloud.aiplatform.v1.GenericO" + + "perationMetadata\"\204\002\n\024UndeployModelReques" + + "t\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform." + + "googleapis.com/Endpoint\022\036\n\021deployed_mode" + + "l_id\030\002 \001(\tB\003\340A\002\022Y\n\rtraffic_split\030\003 \003(\0132B" + + ".google.cloud.aiplatform.v1.UndeployMode" + + "lRequest.TrafficSplitEntry\0323\n\021TrafficSpl" + + "itEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\"" + + "\027\n\025UndeployModelResponse\"p\n\036UndeployMode" + + "lOperationMetadata\022N\n\020generic_metadata\030\001" + + " \001(\01324.google.cloud.aiplatform.v1.Generi" + + "cOperationMetadata\"\330\001\n\032MutateDeployedMod" + + "elRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aip" + + "latform.googleapis.com/Endpoint\022F\n\016deplo" + + "yed_model\030\002 \001(\0132).google.cloud.aiplatfor" + + "m.v1.DeployedModelB\003\340A\002\0224\n\013update_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"`\n" + + "\033MutateDeployedModelResponse\022A\n\016deployed" + + "_model\030\001 \001(\0132).google.cloud.aiplatform.v" + + "1.DeployedModel\"v\n$MutateDeployedModelOp" + + "erationMetadata\022N\n\020generic_metadata\030\001 \001(" + + "\01324.google.cloud.aiplatform.v1.GenericOp" + + "erationMetadata2\255\021\n\017EndpointService\022\202\002\n\016" + + "CreateEndpoint\0221.google.cloud.aiplatform" + + ".v1.CreateEndpointRequest\032\035.google.longr" + + "unning.Operation\"\235\001\312A+\n\010Endpoint\022\037Create" + + "EndpointOperationMetadata\332A\017parent,endpo" + + "int\332A\033parent,endpoint,endpoint_id\202\323\344\223\0029\"" + + "-/v1/{parent=projects/*/locations/*}/end" + + "points:\010endpoint\022\241\001\n\013GetEndpoint\022..googl" + + "e.cloud.aiplatform.v1.GetEndpointRequest" + + "\032$.google.cloud.aiplatform.v1.Endpoint\"<" + + "\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/loca" + + "tions/*/endpoints/*}\022\264\001\n\rListEndpoints\0220" + + ".google.cloud.aiplatform.v1.ListEndpoint" + + "sRequest\0321.google.cloud.aiplatform.v1.Li" + + "stEndpointsResponse\">\332A\006parent\202\323\344\223\002/\022-/v" + + "1/{parent=projects/*/locations/*}/endpoi" + + "nts\022\312\001\n\016UpdateEndpoint\0221.google.cloud.ai" + + "platform.v1.UpdateEndpointRequest\032$.goog" + + "le.cloud.aiplatform.v1.Endpoint\"_\332A\024endp" + + "oint,update_mask\202\323\344\223\002B26/v1/{endpoint.na" + + "me=projects/*/locations/*/endpoints/*}:\010" + + "endpoint\022\374\001\n\031UpdateEndpointLongRunning\022<" + + ".google.cloud.aiplatform.v1.UpdateEndpoi" + + "ntLongRunningRequest\032\035.google.longrunnin" + + "g.Operation\"\201\001\312A+\n\010Endpoint\022\037UpdateEndpo" + + "intOperationMetadata\332A\010endpoint\202\323\344\223\002B\"=/" + + "v1/{endpoint.name=projects/*/locations/*" + + "/endpoints/*}:update:\001*\022\323\001\n\016DeleteEndpoi" + + "nt\0221.google.cloud.aiplatform.v1.DeleteEn" + "dpointRequest\032\035.google.longrunning.Opera" - + "tion\"\235\001\312A+\n\010Endpoint\022\037CreateEndpointOper" - + "ationMetadata\332A\017parent,endpoint\332A\033parent" - + ",endpoint,endpoint_id\202\323\344\223\0029\"-/v1/{parent" - + "=projects/*/locations/*}/endpoints:\010endp" - + "oint\022\241\001\n\013GetEndpoint\022..google.cloud.aipl" - + "atform.v1.GetEndpointRequest\032$.google.cl" - + "oud.aiplatform.v1.Endpoint\"<\332A\004name\202\323\344\223\002" - + "/\022-/v1/{name=projects/*/locations/*/endp" - + "oints/*}\022\264\001\n\rListEndpoints\0220.google.clou" - + "d.aiplatform.v1.ListEndpointsRequest\0321.g" - + "oogle.cloud.aiplatform.v1.ListEndpointsR" - + "esponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=pr" - + "ojects/*/locations/*}/endpoints\022\312\001\n\016Upda" - + "teEndpoint\0221.google.cloud.aiplatform.v1." - + "UpdateEndpointRequest\032$.google.cloud.aip" - + "latform.v1.Endpoint\"_\332A\024endpoint,update_" - + "mask\202\323\344\223\002B26/v1/{endpoint.name=projects/" - + "*/locations/*/endpoints/*}:\010endpoint\022\323\001\n" - + "\016DeleteEndpoint\0221.google.cloud.aiplatfor" - + "m.v1.DeleteEndpointRequest\032\035.google.long" - + "running.Operation\"o\312A0\n\025google.protobuf." - + "Empty\022\027DeleteOperationMetadata\332A\004name\202\323\344" - + "\223\002/*-/v1/{name=projects/*/locations/*/en" - + "dpoints/*}\022\205\002\n\013DeployModel\022..google.clou" - + "d.aiplatform.v1.DeployModelRequest\032\035.goo" - + "gle.longrunning.Operation\"\246\001\312A3\n\023DeployM" - + "odelResponse\022\034DeployModelOperationMetada" - + "ta\332A%endpoint,deployed_model,traffic_spl" - + "it\202\323\344\223\002B\"=/v1/{endpoint=projects/*/locat" - + "ions/*/endpoints/*}:deployModel:\001*\022\222\002\n\rU" - + "ndeployModel\0220.google.cloud.aiplatform.v" - + "1.UndeployModelRequest\032\035.google.longrunn" - + "ing.Operation\"\257\001\312A7\n\025UndeployModelRespon" - + "se\022\036UndeployModelOperationMetadata\332A(end" - + "point,deployed_model_id,traffic_split\202\323\344" - + "\223\002D\"?/v1/{endpoint=projects/*/locations/" - + "*/endpoints/*}:undeployModel:\001*\022\253\002\n\023Muta" - + "teDeployedModel\0226.google.cloud.aiplatfor" - + "m.v1.MutateDeployedModelRequest\032\035.google" - + ".longrunning.Operation\"\274\001\312AC\n\033MutateDepl" - + "oyedModelResponse\022$MutateDeployedModelOp" - + "erationMetadata\332A#endpoint,deployed_mode" - + "l,update_mask\202\323\344\223\002J\"E/v1/{endpoint=proje" - + "cts/*/locations/*/endpoints/*}:mutateDep" - + "loyedModel:\001*\032M\312A\031aiplatform.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\322\001\n\036com.google.cloud.aiplat" - + "form.v1B\024EndpointServiceProtoP\001Z>cloud.g" - + "oogle.com/go/aiplatform/apiv1/aiplatform" - + "pb;aiplatformpb\252\002\032Google.Cloud.AIPlatfor" - + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog" - + "le::Cloud::AIPlatform::V1b\006proto3" + + "tion\"o\312A0\n\025google.protobuf.Empty\022\027Delete" + + "OperationMetadata\332A\004name\202\323\344\223\002/*-/v1/{nam" + + "e=projects/*/locations/*/endpoints/*}\022\205\002" + + "\n\013DeployModel\022..google.cloud.aiplatform." + + "v1.DeployModelRequest\032\035.google.longrunni" + + "ng.Operation\"\246\001\312A3\n\023DeployModelResponse\022" + + "\034DeployModelOperationMetadata\332A%endpoint" + + ",deployed_model,traffic_split\202\323\344\223\002B\"=/v1" + + "/{endpoint=projects/*/locations/*/endpoi" + + "nts/*}:deployModel:\001*\022\222\002\n\rUndeployModel\022" + + "0.google.cloud.aiplatform.v1.UndeployMod" + + "elRequest\032\035.google.longrunning.Operation" + + "\"\257\001\312A7\n\025UndeployModelResponse\022\036UndeployM" + + "odelOperationMetadata\332A(endpoint,deploye" + + "d_model_id,traffic_split\202\323\344\223\002D\"?/v1/{end" + + "point=projects/*/locations/*/endpoints/*" + + "}:undeployModel:\001*\022\253\002\n\023MutateDeployedMod" + + "el\0226.google.cloud.aiplatform.v1.MutateDe" + + "ployedModelRequest\032\035.google.longrunning." + + "Operation\"\274\001\312AC\n\033MutateDeployedModelResp" + + "onse\022$MutateDeployedModelOperationMetada" + + "ta\332A#endpoint,deployed_model,update_mask" + + "\202\323\344\223\002J\"E/v1/{endpoint=projects/*/locatio" + + "ns/*/endpoints/*}:mutateDeployedModel:\001*" + + "\032M\312A\031aiplatform.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\322\001\n\036com.google.cloud.aiplatform.v1B\024Endp" + + "ointServiceProtoP\001Z>cloud.google.com/go/" + + "aiplatform/apiv1/aiplatformpb;aiplatform" + + "pb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google" + + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AI" + + "Platform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -293,8 +313,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Endpoint", "UpdateMask", }); - internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor, + new java.lang.String[] { + "Endpoint", + }); + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_descriptor, @@ -302,7 +338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_DeployModelRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1_DeployModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeployModelRequest_descriptor, @@ -320,7 +356,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1_DeployModelResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1_DeployModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeployModelResponse_descriptor, @@ -328,7 +364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeployedModel", }); internal_static_google_cloud_aiplatform_v1_DeployModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1_DeployModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeployModelOperationMetadata_descriptor, @@ -336,7 +372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1_UndeployModelRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1_UndeployModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UndeployModelRequest_descriptor, @@ -354,13 +390,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1_UndeployModelResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1_UndeployModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UndeployModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_UndeployModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1_UndeployModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UndeployModelOperationMetadata_descriptor, @@ -368,7 +404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_MutateDeployedModelRequest_descriptor, @@ -376,7 +412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "DeployedModel", "UpdateMask", }); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_MutateDeployedModelResponse_descriptor, @@ -384,7 +420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeployedModel", }); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_MutateDeployedModelOperationMetadata_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java index c4a4bf9acff6..4968c03d9810 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java @@ -2434,6 +2434,1399 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface CustomEnvironmentSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + boolean hasMachineSpec(); + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec(); + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder(); + + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + boolean hasPersistentDiskSpec(); + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + com.google.cloud.aiplatform.v1.PersistentDiskSpec getPersistentDiskSpec(); + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder getPersistentDiskSpecOrBuilder(); + + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + boolean hasNetworkSpec(); + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + com.google.cloud.aiplatform.v1.NetworkSpec getNetworkSpec(); + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuilder(); + } + /** + * + * + *
+   * Compute configuration to use for an execution job.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec} + */ + public static final class CustomEnvironmentSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + CustomEnvironmentSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomEnvironmentSpec.newBuilder() to construct. + private CustomEnvironmentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomEnvironmentSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomEnvironmentSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + .class); + } + + private int bitField0_; + public static final int MACHINE_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.MachineSpec machineSpec_; + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + @java.lang.Override + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + + public static final int PERSISTENT_DISK_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.PersistentDiskSpec persistentDiskSpec_; + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + @java.lang.Override + public boolean hasPersistentDiskSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpec getPersistentDiskSpec() { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder() { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + + public static final int NETWORK_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.NetworkSpec networkSpec_; + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + @java.lang.Override + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NetworkSpec getNetworkSpec() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMachineSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getNetworkSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMachineSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNetworkSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec other = + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) obj; + + if (hasMachineSpec() != other.hasMachineSpec()) return false; + if (hasMachineSpec()) { + if (!getMachineSpec().equals(other.getMachineSpec())) return false; + } + if (hasPersistentDiskSpec() != other.hasPersistentDiskSpec()) return false; + if (hasPersistentDiskSpec()) { + if (!getPersistentDiskSpec().equals(other.getPersistentDiskSpec())) return false; + } + if (hasNetworkSpec() != other.hasNetworkSpec()) return false; + if (hasNetworkSpec()) { + if (!getNetworkSpec().equals(other.getNetworkSpec())) 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 (hasMachineSpec()) { + hash = (37 * hash) + MACHINE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMachineSpec().hashCode(); + } + if (hasPersistentDiskSpec()) { + hash = (37 * hash) + PERSISTENT_DISK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPersistentDiskSpec().hashCode(); + } + if (hasNetworkSpec()) { + hash = (37 * hash) + NETWORK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNetworkSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Compute configuration to use for an execution job.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMachineSpecFieldBuilder(); + getPersistentDiskSpecFieldBuilder(); + getNetworkSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + persistentDiskSpec_ = null; + if (persistentDiskSpecBuilder_ != null) { + persistentDiskSpecBuilder_.dispose(); + persistentDiskSpecBuilder_ = null; + } + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec build() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + buildPartial() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec result = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.persistentDiskSpec_ = + persistentDiskSpecBuilder_ == null + ? persistentDiskSpec_ + : persistentDiskSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkSpec_ = + networkSpecBuilder_ == null ? networkSpec_ : networkSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec other) { + if (other + == com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance()) return this; + if (other.hasMachineSpec()) { + mergeMachineSpec(other.getMachineSpec()); + } + if (other.hasPersistentDiskSpec()) { + mergePersistentDiskSpec(other.getPersistentDiskSpec()); + } + if (other.hasNetworkSpec()) { + mergeNetworkSpec(other.getNetworkSpec()); + } + 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(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getPersistentDiskSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getNetworkSpecFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.aiplatform.v1.MachineSpec machineSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MachineSpec, + com.google.cloud.aiplatform.v1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder> + machineSpecBuilder_; + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() { + if (machineSpecBuilder_ == null) { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; + } else { + return machineSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public Builder setMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { + if (machineSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + machineSpec_ = value; + } else { + machineSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public Builder setMachineSpec( + com.google.cloud.aiplatform.v1.MachineSpec.Builder builderForValue) { + if (machineSpecBuilder_ == null) { + machineSpec_ = builderForValue.build(); + } else { + machineSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { + if (machineSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && machineSpec_ != null + && machineSpec_ != com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); + } else { + machineSpec_ = value; + } + } else { + machineSpecBuilder_.mergeFrom(value); + } + if (machineSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public Builder clearMachineSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public com.google.cloud.aiplatform.v1.MachineSpec.Builder getMachineSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMachineSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + if (machineSpecBuilder_ != null) { + return machineSpecBuilder_.getMessageOrBuilder(); + } else { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MachineSpec, + com.google.cloud.aiplatform.v1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder> + getMachineSpecFieldBuilder() { + if (machineSpecBuilder_ == null) { + machineSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MachineSpec, + com.google.cloud.aiplatform.v1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder>( + getMachineSpec(), getParentForChildren(), isClean()); + machineSpec_ = null; + } + return machineSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1.PersistentDiskSpec persistentDiskSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder> + persistentDiskSpecBuilder_; + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + public boolean hasPersistentDiskSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + public com.google.cloud.aiplatform.v1.PersistentDiskSpec getPersistentDiskSpec() { + if (persistentDiskSpecBuilder_ == null) { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } else { + return persistentDiskSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder setPersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec value) { + if (persistentDiskSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistentDiskSpec_ = value; + } else { + persistentDiskSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder setPersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder builderForValue) { + if (persistentDiskSpecBuilder_ == null) { + persistentDiskSpec_ = builderForValue.build(); + } else { + persistentDiskSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder mergePersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec value) { + if (persistentDiskSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && persistentDiskSpec_ != null + && persistentDiskSpec_ + != com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance()) { + getPersistentDiskSpecBuilder().mergeFrom(value); + } else { + persistentDiskSpec_ = value; + } + } else { + persistentDiskSpecBuilder_.mergeFrom(value); + } + if (persistentDiskSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder clearPersistentDiskSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + persistentDiskSpec_ = null; + if (persistentDiskSpecBuilder_ != null) { + persistentDiskSpecBuilder_.dispose(); + persistentDiskSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder + getPersistentDiskSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPersistentDiskSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder() { + if (persistentDiskSpecBuilder_ != null) { + return persistentDiskSpecBuilder_.getMessageOrBuilder(); + } else { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder> + getPersistentDiskSpecFieldBuilder() { + if (persistentDiskSpecBuilder_ == null) { + persistentDiskSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder>( + getPersistentDiskSpec(), getParentForChildren(), isClean()); + persistentDiskSpec_ = null; + } + return persistentDiskSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1.NetworkSpec networkSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NetworkSpec, + com.google.cloud.aiplatform.v1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder> + networkSpecBuilder_; + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + public com.google.cloud.aiplatform.v1.NetworkSpec getNetworkSpec() { + if (networkSpecBuilder_ == null) { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } else { + return networkSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public Builder setNetworkSpec(com.google.cloud.aiplatform.v1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkSpec_ = value; + } else { + networkSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public Builder setNetworkSpec( + com.google.cloud.aiplatform.v1.NetworkSpec.Builder builderForValue) { + if (networkSpecBuilder_ == null) { + networkSpec_ = builderForValue.build(); + } else { + networkSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public Builder mergeNetworkSpec(com.google.cloud.aiplatform.v1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && networkSpec_ != null + && networkSpec_ != com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance()) { + getNetworkSpecBuilder().mergeFrom(value); + } else { + networkSpec_ = value; + } + } else { + networkSpecBuilder_.mergeFrom(value); + } + if (networkSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public Builder clearNetworkSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public com.google.cloud.aiplatform.v1.NetworkSpec.Builder getNetworkSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getNetworkSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + if (networkSpecBuilder_ != null) { + return networkSpecBuilder_.getMessageOrBuilder(); + } else { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NetworkSpec, + com.google.cloud.aiplatform.v1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder> + getNetworkSpecFieldBuilder() { + if (networkSpecBuilder_ == null) { + networkSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NetworkSpec, + com.google.cloud.aiplatform.v1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder>( + getNetworkSpec(), getParentForChildren(), isClean()); + networkSpec_ = null; + } + return networkSpecBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + private static final com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec(); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomEnvironmentSpec 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.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int notebookSourceCase_ = 0; @@ -2497,6 +3890,7 @@ public enum EnvironmentSpecCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME(14), + CUSTOM_ENVIRONMENT_SPEC(16), ENVIRONMENTSPEC_NOT_SET(0); private final int value; @@ -2517,6 +3911,8 @@ public static EnvironmentSpecCase forNumber(int value) { switch (value) { case 14: return NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME; + case 16: + return CUSTOM_ENVIRONMENT_SPEC; case 0: return ENVIRONMENTSPEC_NOT_SET; default: @@ -2896,6 +4292,69 @@ public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameByte } } + public static final int CUSTOM_ENVIRONMENT_SPEC_FIELD_NUMBER = 16; + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + @java.lang.Override + public boolean hasCustomEnvironmentSpec() { + return environmentSpecCase_ == 16; + } + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec() { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder() { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + public static final int GCS_OUTPUT_URI_FIELD_NUMBER = 8; /** * @@ -3764,6 +5223,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (environmentSpecCase_ == 14) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, environmentSpec_); } + if (environmentSpecCase_ == 16) { + output.writeMessage( + 16, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_); + } if (notebookSourceCase_ == 17) { output.writeMessage( 17, @@ -3834,6 +5299,13 @@ public int getSerializedSize() { if (environmentSpecCase_ == 14) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, environmentSpec_); } + if (environmentSpecCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_); + } if (notebookSourceCase_ == 17) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -3919,6 +5391,9 @@ public boolean equals(final java.lang.Object obj) { if (!getNotebookRuntimeTemplateResourceName() .equals(other.getNotebookRuntimeTemplateResourceName())) return false; break; + case 16: + if (!getCustomEnvironmentSpec().equals(other.getCustomEnvironmentSpec())) return false; + break; case 0: default: } @@ -4005,6 +5480,10 @@ public int hashCode() { hash = (37 * hash) + NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getNotebookRuntimeTemplateResourceName().hashCode(); break; + case 16: + hash = (37 * hash) + CUSTOM_ENVIRONMENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCustomEnvironmentSpec().hashCode(); + break; case 0: default: } @@ -4211,6 +5690,9 @@ public Builder clear() { if (directNotebookSourceBuilder_ != null) { directNotebookSourceBuilder_.clear(); } + if (customEnvironmentSpecBuilder_ != null) { + customEnvironmentSpecBuilder_.clear(); + } name_ = ""; displayName_ = ""; executionTimeout_ = null; @@ -4286,41 +5768,41 @@ public com.google.cloud.aiplatform.v1.NotebookExecutionJob buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1.NotebookExecutionJob result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.displayName_ = displayName_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.executionTimeout_ = executionTimeoutBuilder_ == null ? executionTimeout_ : executionTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.scheduleResourceName_ = scheduleResourceName_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.jobState_ = jobState_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; @@ -4342,6 +5824,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1.NotebookExecution } result.environmentSpecCase_ = environmentSpecCase_; result.environmentSpec_ = this.environmentSpec_; + if (environmentSpecCase_ == 16 && customEnvironmentSpecBuilder_ != null) { + result.environmentSpec_ = customEnvironmentSpecBuilder_.build(); + } result.executionSinkCase_ = executionSinkCase_; result.executionSink_ = this.executionSink_; result.executionIdentityCase_ = executionIdentityCase_; @@ -4396,12 +5881,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasExecutionTimeout()) { @@ -4409,7 +5894,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth } if (!other.getScheduleResourceName().isEmpty()) { scheduleResourceName_ = other.scheduleResourceName_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (other.jobState_ != 0) { @@ -4425,7 +5910,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -4458,6 +5943,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth onChanged(); break; } + case CUSTOM_ENVIRONMENT_SPEC: + { + mergeCustomEnvironmentSpec(other.getCustomEnvironmentSpec()); + break; + } case ENVIRONMENTSPEC_NOT_SET: { break; @@ -4525,13 +6015,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 18 case 26: @@ -4552,13 +6042,13 @@ public Builder mergeFrom( { input.readMessage( getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 42 case 50: { scheduleResourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 50 case 66: @@ -4578,25 +6068,25 @@ public Builder mergeFrom( case 80: { jobState_ = input.readEnum(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 80 case 90: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 90 case 98: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 98 case 106: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 114: @@ -4606,6 +6096,13 @@ public Builder mergeFrom( environmentSpec_ = s; break; } // case 114 + case 130: + { + input.readMessage( + getCustomEnvironmentSpecFieldBuilder().getBuilder(), extensionRegistry); + environmentSpecCase_ = 16; + break; + } // case 130 case 138: { input.readMessage( @@ -4629,13 +6126,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 154 case 178: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 178 default: @@ -5604,6 +7101,250 @@ public Builder setNotebookRuntimeTemplateResourceNameBytes( return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder> + customEnvironmentSpecBuilder_; + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + @java.lang.Override + public boolean hasCustomEnvironmentSpec() { + return environmentSpecCase_ == 16; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec() { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } else { + if (environmentSpecCase_ == 16) { + return customEnvironmentSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder setCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec value) { + if (customEnvironmentSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentSpec_ = value; + onChanged(); + } else { + customEnvironmentSpecBuilder_.setMessage(value); + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder setCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + builderForValue) { + if (customEnvironmentSpecBuilder_ == null) { + environmentSpec_ = builderForValue.build(); + onChanged(); + } else { + customEnvironmentSpecBuilder_.setMessage(builderForValue.build()); + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder mergeCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec value) { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16 + && environmentSpec_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance()) { + environmentSpec_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.newBuilder( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + environmentSpec_ = value; + } + onChanged(); + } else { + if (environmentSpecCase_ == 16) { + customEnvironmentSpecBuilder_.mergeFrom(value); + } else { + customEnvironmentSpecBuilder_.setMessage(value); + } + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder clearCustomEnvironmentSpec() { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + onChanged(); + } + } else { + if (environmentSpecCase_ == 16) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + } + customEnvironmentSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + getCustomEnvironmentSpecBuilder() { + return getCustomEnvironmentSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder() { + if ((environmentSpecCase_ == 16) && (customEnvironmentSpecBuilder_ != null)) { + return customEnvironmentSpecBuilder_.getMessageOrBuilder(); + } else { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder> + getCustomEnvironmentSpecFieldBuilder() { + if (customEnvironmentSpecBuilder_ == null) { + if (!(environmentSpecCase_ == 16)) { + environmentSpec_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + customEnvironmentSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder>( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_, + getParentForChildren(), + isClean()); + environmentSpec_ = null; + } + environmentSpecCase_ = 16; + onChanged(); + return customEnvironmentSpecBuilder_; + } + /** * * @@ -6077,7 +7818,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6095,7 +7836,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -6118,7 +7859,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6188,7 +7929,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6206,7 +7947,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -6229,7 +7970,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6252,7 +7993,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -6292,7 +8033,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { } else { executionTimeoutBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6311,7 +8052,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF } else { executionTimeoutBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6326,7 +8067,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && executionTimeout_ != null && executionTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getExecutionTimeoutBuilder().mergeFrom(value); @@ -6337,7 +8078,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { executionTimeoutBuilder_.mergeFrom(value); } if (executionTimeout_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -6352,7 +8093,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { * .google.protobuf.Duration execution_timeout = 5; */ public Builder clearExecutionTimeout() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); executionTimeout_ = null; if (executionTimeoutBuilder_ != null) { executionTimeoutBuilder_.dispose(); @@ -6371,7 +8112,7 @@ public Builder clearExecutionTimeout() { * .google.protobuf.Duration execution_timeout = 5; */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } @@ -6493,7 +8234,7 @@ public Builder setScheduleResourceName(java.lang.String value) { throw new NullPointerException(); } scheduleResourceName_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6514,7 +8255,7 @@ public Builder setScheduleResourceName(java.lang.String value) { */ public Builder clearScheduleResourceName() { scheduleResourceName_ = getDefaultInstance().getScheduleResourceName(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -6540,7 +8281,7 @@ public Builder setScheduleResourceNameBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); scheduleResourceName_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6579,7 +8320,7 @@ public int getJobStateValue() { */ public Builder setJobStateValue(int value) { jobState_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6620,7 +8361,7 @@ public Builder setJobState(com.google.cloud.aiplatform.v1.JobState value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; jobState_ = value.getNumber(); onChanged(); return this; @@ -6639,7 +8380,7 @@ public Builder setJobState(com.google.cloud.aiplatform.v1.JobState value) { * @return This builder for chaining. */ public Builder clearJobState() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); jobState_ = 0; onChanged(); return this; @@ -6663,7 +8404,7 @@ public Builder clearJobState() { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -6705,7 +8446,7 @@ public Builder setStatus(com.google.rpc.Status value) { } else { statusBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6726,7 +8467,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { } else { statusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6743,7 +8484,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && status_ != null && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); @@ -6754,7 +8495,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { statusBuilder_.mergeFrom(value); } if (status_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -6771,7 +8512,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); @@ -6792,7 +8533,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getStatusBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -6859,7 +8600,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -6903,7 +8644,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6924,7 +8665,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6941,7 +8682,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -6952,7 +8693,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -6969,7 +8710,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -6990,7 +8731,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -7063,7 +8804,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -7109,7 +8850,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7131,7 +8872,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7149,7 +8890,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -7160,7 +8901,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -7178,7 +8919,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -7200,7 +8941,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -7271,7 +9012,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return labels_; } @@ -7388,7 +9129,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -7419,7 +9160,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return internalGetMutableLabels().getMutableMap(); } /** @@ -7447,7 +9188,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } /** @@ -7469,7 +9210,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } @@ -7493,7 +9234,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -7537,7 +9278,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7559,7 +9300,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7576,7 +9317,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { @@ -7588,7 +9329,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -7605,7 +9346,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -7626,7 +9367,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java index ecd5ce95d9ee..aab31eb7490d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java @@ -198,6 +198,49 @@ public interface NotebookExecutionJobOrBuilder */ com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + boolean hasCustomEnvironmentSpec(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java index 7c4c8700eb1a..cdf4ea0e694f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,53 +67,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/resource.proto\0320google/cloud/" + "aiplatform/v1/encryption_spec.proto\032*goo" + "gle/cloud/aiplatform/v1/job_state.proto\032" - + "\036google/protobuf/duration.proto\032\037google/" - + "protobuf/timestamp.proto\032\027google/rpc/sta" - + "tus.proto\"\222\014\n\024NotebookExecutionJob\022o\n\032da" - + "taform_repository_source\030\003 \001(\0132I.google." + + "2google/cloud/aiplatform/v1/machine_reso" + + "urces.proto\032-google/cloud/aiplatform/v1/" + + "network_spec.proto\032\036google/protobuf/dura" + + "tion.proto\032\037google/protobuf/timestamp.pr" + + "oto\032\027google/rpc/status.proto\"\343\016\n\024Noteboo" + + "kExecutionJob\022o\n\032dataform_repository_sou" + + "rce\030\003 \001(\0132I.google.cloud.aiplatform.v1.N" + + "otebookExecutionJob.DataformRepositorySo" + + "urceH\000\022a\n\023gcs_notebook_source\030\004 \001(\0132B.go" + + "ogle.cloud.aiplatform.v1.NotebookExecuti" + + "onJob.GcsNotebookSourceH\000\022g\n\026direct_note" + + "book_source\030\021 \001(\0132E.google.cloud.aiplatf" + + "orm.v1.NotebookExecutionJob.DirectNotebo" + + "okSourceH\000\022i\n\'notebook_runtime_template_" + + "resource_name\030\016 \001(\tB6\372A3\n1aiplatform.goo" + + "gleapis.com/NotebookRuntimeTemplateH\001\022i\n" + + "\027custom_environment_spec\030\020 \001(\0132F.google." + "cloud.aiplatform.v1.NotebookExecutionJob" - + ".DataformRepositorySourceH\000\022a\n\023gcs_noteb" - + "ook_source\030\004 \001(\0132B.google.cloud.aiplatfo" - + "rm.v1.NotebookExecutionJob.GcsNotebookSo" - + "urceH\000\022g\n\026direct_notebook_source\030\021 \001(\0132E" - + ".google.cloud.aiplatform.v1.NotebookExec" - + "utionJob.DirectNotebookSourceH\000\022i\n\'noteb" - + "ook_runtime_template_resource_name\030\016 \001(\t" - + "B6\372A3\n1aiplatform.googleapis.com/Noteboo" - + "kRuntimeTemplateH\001\022\030\n\016gcs_output_uri\030\010 \001" - + "(\tH\002\022\030\n\016execution_user\030\t \001(\tH\003\022\031\n\017servic" - + "e_account\030\022 \001(\tH\003\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014" - + "display_name\030\002 \001(\t\0224\n\021execution_timeout\030" - + "\005 \001(\0132\031.google.protobuf.Duration\022J\n\026sche" - + "dule_resource_name\030\006 \001(\tB*\340A\003\372A$\n\"aiplat" - + "form.googleapis.com/Schedule\022<\n\tjob_stat" - + "e\030\n \001(\0162$.google.cloud.aiplatform.v1.Job" - + "StateB\003\340A\003\022\'\n\006status\030\013 \001(\0132\022.google.rpc." - + "StatusB\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\r \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "L\n\006labels\030\023 \003(\0132<.google.cloud.aiplatfor" - + "m.v1.NotebookExecutionJob.LabelsEntry\022C\n" - + "\017encryption_spec\030\026 \001(\0132*.google.cloud.ai" - + "platform.v1.EncryptionSpec\032Y\n\030DataformRe" - + "positorySource\022)\n!dataform_repository_re" - + "source_name\030\001 \001(\t\022\022\n\ncommit_sha\030\002 \001(\t\0324\n" - + "\021GcsNotebookSource\022\013\n\003uri\030\001 \001(\t\022\022\n\ngener" - + "ation\030\002 \001(\t\032\'\n\024DirectNotebookSource\022\017\n\007c" - + "ontent\030\001 \001(\014\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n.aiplatform.g" - + "oogleapis.com/NotebookExecutionJob\022Vproj" - + "ects/{project}/locations/{location}/note" - + "bookExecutionJobs/{notebook_execution_jo" - + "b}*\025notebookExecutionJobs2\024notebookExecu" - + "tionJobB\021\n\017notebook_sourceB\022\n\020environmen" - + "t_specB\020\n\016execution_sinkB\024\n\022execution_id" - + "entityB\327\001\n\036com.google.cloud.aiplatform.v" - + "1B\031NotebookExecutionJobProtoP\001Z>cloud.go" - + "ogle.com/go/aiplatform/apiv1/aiplatformp" - + "b;aiplatformpb\252\002\032Google.Cloud.AIPlatform" - + ".V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Googl" - + "e::Cloud::AIPlatform::V1b\006proto3" + + ".CustomEnvironmentSpecH\001\022\030\n\016gcs_output_u" + + "ri\030\010 \001(\tH\002\022\030\n\016execution_user\030\t \001(\tH\003\022\031\n\017" + + "service_account\030\022 \001(\tH\003\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\022\024\n\014display_name\030\002 \001(\t\0224\n\021execution_ti" + + "meout\030\005 \001(\0132\031.google.protobuf.Duration\022J" + + "\n\026schedule_resource_name\030\006 \001(\tB*\340A\003\372A$\n\"" + + "aiplatform.googleapis.com/Schedule\022<\n\tjo" + + "b_state\030\n \001(\0162$.google.cloud.aiplatform." + + "v1.JobStateB\003\340A\003\022\'\n\006status\030\013 \001(\0132\022.googl" + + "e.rpc.StatusB\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\r \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022L\n\006labels\030\023 \003(\0132<.google.cloud.aip" + + "latform.v1.NotebookExecutionJob.LabelsEn" + + "try\022C\n\017encryption_spec\030\026 \001(\0132*.google.cl" + + "oud.aiplatform.v1.EncryptionSpec\032Y\n\030Data" + + "formRepositorySource\022)\n!dataform_reposit" + + "ory_resource_name\030\001 \001(\t\022\022\n\ncommit_sha\030\002 " + + "\001(\t\0324\n\021GcsNotebookSource\022\013\n\003uri\030\001 \001(\t\022\022\n" + + "\ngeneration\030\002 \001(\t\032\'\n\024DirectNotebookSourc" + + "e\022\017\n\007content\030\001 \001(\014\032\343\001\n\025CustomEnvironment" + + "Spec\022=\n\014machine_spec\030\001 \001(\0132\'.google.clou" + + "d.aiplatform.v1.MachineSpec\022L\n\024persisten" + + "t_disk_spec\030\002 \001(\0132..google.cloud.aiplatf" + + "orm.v1.PersistentDiskSpec\022=\n\014network_spe" + + "c\030\003 \001(\0132\'.google.cloud.aiplatform.v1.Net" + + "workSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n.aiplatform.googl" + + "eapis.com/NotebookExecutionJob\022Vprojects" + + "/{project}/locations/{location}/notebook" + + "ExecutionJobs/{notebook_execution_job}*\025" + + "notebookExecutionJobs2\024notebookExecution" + + "JobB\021\n\017notebook_sourceB\022\n\020environment_sp" + + "ecB\020\n\016execution_sinkB\024\n\022execution_identi" + + "tyB\327\001\n\036com.google.cloud.aiplatform.v1B\031N" + + "otebookExecutionJobProtoP\001Z>cloud.google" + + ".com/go/aiplatform/apiv1/aiplatformpb;ai" + + "platformpb\252\002\032Google.Cloud.AIPlatform.V1\312" + + "\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::C" + + "loud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -119,6 +134,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1.JobStateProto.getDescriptor(), + com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(), + com.google.cloud.aiplatform.v1.NetworkSpecProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -133,6 +150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsNotebookSource", "DirectNotebookSource", "NotebookRuntimeTemplateResourceName", + "CustomEnvironmentSpec", "GcsOutputUri", "ExecutionUser", "ServiceAccount", @@ -181,10 +199,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Content", }); - internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor = internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor .getNestedTypes() .get(3); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor, + new java.lang.String[] { + "MachineSpec", "PersistentDiskSpec", "NetworkSpec", + }); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(4); internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor, @@ -202,6 +230,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1.JobStateProto.getDescriptor(); + com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(); + com.google.cloud.aiplatform.v1.NetworkSpecProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequest.java new file mode 100644 index 000000000000..fc3f9867751e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequest.java @@ -0,0 +1,780 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1/endpoint_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest} + */ +public final class UpdateEndpointLongRunningRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + UpdateEndpointLongRunningRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEndpointLongRunningRequest.newBuilder() to construct. + private UpdateEndpointLongRunningRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEndpointLongRunningRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateEndpointLongRunningRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.class, + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.Builder.class); + } + + private int bitField0_; + public static final int ENDPOINT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.Endpoint endpoint_; + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endpoint field is set. + */ + @java.lang.Override + public boolean hasEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endpoint. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Endpoint getEndpoint() { + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; + } + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() { + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEndpoint()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndpoint()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest other = + (com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) obj; + + if (hasEndpoint() != other.hasEndpoint()) return false; + if (hasEndpoint()) { + if (!getEndpoint().equals(other.getEndpoint())) 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 (hasEndpoint()) { + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.class, + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEndpointFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); + endpointBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest build() { + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest buildPartial() { + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest result = + new com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpointBuilder_ == null ? endpoint_ : endpointBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest other) { + if (other + == com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.getDefaultInstance()) + return this; + if (other.hasEndpoint()) { + mergeEndpoint(other.getEndpoint()); + } + 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(getEndpointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.cloud.aiplatform.v1.Endpoint endpoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Endpoint, + com.google.cloud.aiplatform.v1.Endpoint.Builder, + com.google.cloud.aiplatform.v1.EndpointOrBuilder> + endpointBuilder_; + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endpoint field is set. + */ + public boolean hasEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endpoint. + */ + public com.google.cloud.aiplatform.v1.Endpoint getEndpoint() { + if (endpointBuilder_ == null) { + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; + } else { + return endpointBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { + if (endpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + } else { + endpointBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint.Builder builderForValue) { + if (endpointBuilder_ == null) { + endpoint_ = builderForValue.build(); + } else { + endpointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { + if (endpointBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && endpoint_ != null + && endpoint_ != com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance()) { + getEndpointBuilder().mergeFrom(value); + } else { + endpoint_ = value; + } + } else { + endpointBuilder_.mergeFrom(value); + } + if (endpoint_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEndpoint() { + bitField0_ = (bitField0_ & ~0x00000001); + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); + endpointBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.Endpoint.Builder getEndpointBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEndpointFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() { + if (endpointBuilder_ != null) { + return endpointBuilder_.getMessageOrBuilder(); + } else { + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; + } + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Endpoint, + com.google.cloud.aiplatform.v1.Endpoint.Builder, + com.google.cloud.aiplatform.v1.EndpointOrBuilder> + getEndpointFieldBuilder() { + if (endpointBuilder_ == null) { + endpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Endpoint, + com.google.cloud.aiplatform.v1.Endpoint.Builder, + com.google.cloud.aiplatform.v1.EndpointOrBuilder>( + getEndpoint(), getParentForChildren(), isClean()); + endpoint_ = null; + } + return endpointBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + private static final com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest(); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEndpointLongRunningRequest 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.aiplatform.v1.UpdateEndpointLongRunningRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequestOrBuilder.java new file mode 100644 index 000000000000..9e5d2b1fb660 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequestOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1/endpoint_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateEndpointLongRunningRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endpoint field is set. + */ + boolean hasEndpoint(); + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endpoint. + */ + com.google.cloud.aiplatform.v1.Endpoint getEndpoint(); + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadata.java new file mode 100644 index 000000000000..0f80d5fec8eb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadata.java @@ -0,0 +1,739 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1/endpoint_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Runtime operation information for
+ * [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata} + */ +public final class UpdateEndpointOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + UpdateEndpointOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEndpointOperationMetadata.newBuilder() to construct. + private UpdateEndpointOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEndpointOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateEndpointOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.class, + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata other = + (com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for
+   * [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.class, + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata build() { + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata result = + new com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.getDefaultInstance()) + return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + 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(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + private static final com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEndpointOperationMetadata 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.aiplatform.v1.UpdateEndpointOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..f04844473d61 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1/endpoint_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateEndpointOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto index 9ef20473d4f8..8ba04290a264 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto @@ -23,6 +23,7 @@ import "google/cloud/aiplatform/v1/explanation.proto"; import "google/cloud/aiplatform/v1/io.proto"; import "google/cloud/aiplatform/v1/machine_resources.proto"; import "google/cloud/aiplatform/v1/service_networking.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -167,6 +168,9 @@ message Endpoint { string dedicated_endpoint_dns = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Configurations that are applied to the endpoint for online prediction. + ClientConnectionConfig client_connection_config = 23; + // Output only. Reserved for future use. bool satisfies_pzs = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -345,3 +349,9 @@ message FasterDeploymentConfig { // If true, enable fast tryout feature for this deployed model. bool fast_tryout_enabled = 2; } + +// Configurations (e.g. inference timeout) that are applied on your endpoints. +message ClientConnectionConfig { + // Customizable online prediction request timeout. + google.protobuf.Duration inference_timeout = 1; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto index 85b04746010b..b69ba90f3da6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto @@ -80,6 +80,20 @@ service EndpointService { option (google.api.method_signature) = "endpoint,update_mask"; } + // Updates an Endpoint with a long running operation. + rpc UpdateEndpointLongRunning(UpdateEndpointLongRunningRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{endpoint.name=projects/*/locations/*/endpoints/*}:update" + body: "*" + }; + option (google.api.method_signature) = "endpoint"; + option (google.longrunning.operation_info) = { + response_type: "Endpoint" + metadata_type: "UpdateEndpointOperationMetadata" + }; + } + // Deletes an Endpoint. rpc DeleteEndpoint(DeleteEndpointRequest) returns (google.longrunning.Operation) { @@ -280,6 +294,22 @@ message UpdateEndpointRequest { [(google.api.field_behavior) = REQUIRED]; } +// Request message for +// [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning]. +message UpdateEndpointLongRunningRequest { + // Required. The Endpoint which replaces the resource on the server. Currently + // we only support updating the `client_connection_config` field, all the + // other fields' update will be blocked. + Endpoint endpoint = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for +// [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning]. +message UpdateEndpointOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for // [EndpointService.DeleteEndpoint][google.cloud.aiplatform.v1.EndpointService.DeleteEndpoint]. message DeleteEndpointRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto index 43c961e31f4c..d74233aa6aa5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto @@ -20,6 +20,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/cloud/aiplatform/v1/machine_resources.proto"; +import "google/cloud/aiplatform/v1/network_spec.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -70,6 +72,18 @@ message NotebookExecutionJob { bytes content = 1; } + // Compute configuration to use for an execution job. + message CustomEnvironmentSpec { + // The specification of a single machine for the execution job. + MachineSpec machine_spec = 1; + + // The specification of a persistent disk to attach for the execution job. + PersistentDiskSpec persistent_disk_spec = 2; + + // The network configuration to use for the execution job. + NetworkSpec network_spec = 3; + } + // The input notebook. oneof notebook_source { // The Dataform Repository pointing to a single file notebook repository. @@ -90,6 +104,9 @@ message NotebookExecutionJob { [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/NotebookRuntimeTemplate" }]; + + // The custom compute configuration for an execution job. + CustomEnvironmentSpec custom_environment_spec = 16; } // The location to store the notebook execution result. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java index 7be5612b64d7..347d19719d0c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java @@ -95,6 +95,12 @@ public enum MetricInputsCase TOOL_NAME_MATCH_INPUT(20), TOOL_PARAMETER_KEY_MATCH_INPUT(21), TOOL_PARAMETER_KV_MATCH_INPUT(22), + TRAJECTORY_EXACT_MATCH_INPUT(33), + TRAJECTORY_IN_ORDER_MATCH_INPUT(34), + TRAJECTORY_ANY_ORDER_MATCH_INPUT(35), + TRAJECTORY_PRECISION_INPUT(37), + TRAJECTORY_RECALL_INPUT(38), + TRAJECTORY_SINGLE_TOOL_USE_INPUT(39), METRICINPUTS_NOT_SET(0); private final int value; @@ -159,6 +165,18 @@ public static MetricInputsCase forNumber(int value) { return TOOL_PARAMETER_KEY_MATCH_INPUT; case 22: return TOOL_PARAMETER_KV_MATCH_INPUT; + case 33: + return TRAJECTORY_EXACT_MATCH_INPUT; + case 34: + return TRAJECTORY_IN_ORDER_MATCH_INPUT; + case 35: + return TRAJECTORY_ANY_ORDER_MATCH_INPUT; + case 37: + return TRAJECTORY_PRECISION_INPUT; + case 38: + return TRAJECTORY_RECALL_INPUT; + case 39: + return TRAJECTORY_SINGLE_TOOL_USE_INPUT; case 0: return METRICINPUTS_NOT_SET; default: @@ -1471,6 +1489,356 @@ public boolean hasToolParameterKvMatchInput() { return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInput.getDefaultInstance(); } + public static final int TRAJECTORY_EXACT_MATCH_INPUT_FIELD_NUMBER = 33; + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return Whether the trajectoryExactMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryExactMatchInput() { + return metricInputsCase_ == 33; + } + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return The trajectoryExactMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + getTrajectoryExactMatchInput() { + if (metricInputsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder + getTrajectoryExactMatchInputOrBuilder() { + if (metricInputsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_IN_ORDER_MATCH_INPUT_FIELD_NUMBER = 34; + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return Whether the trajectoryInOrderMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryInOrderMatchInput() { + return metricInputsCase_ == 34; + } + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return The trajectoryInOrderMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getTrajectoryInOrderMatchInput() { + if (metricInputsCase_ == 34) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder + getTrajectoryInOrderMatchInputOrBuilder() { + if (metricInputsCase_ == 34) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_ANY_ORDER_MATCH_INPUT_FIELD_NUMBER = 35; + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return Whether the trajectoryAnyOrderMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryAnyOrderMatchInput() { + return metricInputsCase_ == 35; + } + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return The trajectoryAnyOrderMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getTrajectoryAnyOrderMatchInput() { + if (metricInputsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder + getTrajectoryAnyOrderMatchInputOrBuilder() { + if (metricInputsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_PRECISION_INPUT_FIELD_NUMBER = 37; + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return Whether the trajectoryPrecisionInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryPrecisionInput() { + return metricInputsCase_ == 37; + } + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return The trajectoryPrecisionInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + getTrajectoryPrecisionInput() { + if (metricInputsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder + getTrajectoryPrecisionInputOrBuilder() { + if (metricInputsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_RECALL_INPUT_FIELD_NUMBER = 38; + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return Whether the trajectoryRecallInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryRecallInput() { + return metricInputsCase_ == 38; + } + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return The trajectoryRecallInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getTrajectoryRecallInput() { + if (metricInputsCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder + getTrajectoryRecallInputOrBuilder() { + if (metricInputsCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_SINGLE_TOOL_USE_INPUT_FIELD_NUMBER = 39; + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return Whether the trajectorySingleToolUseInput field is set. + */ + @java.lang.Override + public boolean hasTrajectorySingleToolUseInput() { + return metricInputsCase_ == 39; + } + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return The trajectorySingleToolUseInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getTrajectorySingleToolUseInput() { + if (metricInputsCase_ == 39) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder + getTrajectorySingleToolUseInputOrBuilder() { + if (metricInputsCase_ == 39) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance(); + } + public static final int LOCATION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1634,6 +2002,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } + if (metricInputsCase_ == 33) { + output.writeMessage( + 33, (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_); + } + if (metricInputsCase_ == 34) { + output.writeMessage( + 34, (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_); + } + if (metricInputsCase_ == 35) { + output.writeMessage( + 35, (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_); + } + if (metricInputsCase_ == 37) { + output.writeMessage( + 37, (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_); + } + if (metricInputsCase_ == 38) { + output.writeMessage( + 38, (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_); + } + if (metricInputsCase_ == 39) { + output.writeMessage( + 39, (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_); + } getUnknownFields().writeTo(output); } @@ -1772,6 +2164,36 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } + if (metricInputsCase_ == 33) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_); + } + if (metricInputsCase_ == 34) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_); + } + if (metricInputsCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_); + } + if (metricInputsCase_ == 37) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 37, (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_); + } + if (metricInputsCase_ == 38) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 38, (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_); + } + if (metricInputsCase_ == 39) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 39, (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1871,7 +2293,30 @@ public boolean equals(final java.lang.Object obj) { if (!getToolParameterKvMatchInput().equals(other.getToolParameterKvMatchInput())) return false; break; - case 0: + case 33: + if (!getTrajectoryExactMatchInput().equals(other.getTrajectoryExactMatchInput())) + return false; + break; + case 34: + if (!getTrajectoryInOrderMatchInput().equals(other.getTrajectoryInOrderMatchInput())) + return false; + break; + case 35: + if (!getTrajectoryAnyOrderMatchInput().equals(other.getTrajectoryAnyOrderMatchInput())) + return false; + break; + case 37: + if (!getTrajectoryPrecisionInput().equals(other.getTrajectoryPrecisionInput())) + return false; + break; + case 38: + if (!getTrajectoryRecallInput().equals(other.getTrajectoryRecallInput())) return false; + break; + case 39: + if (!getTrajectorySingleToolUseInput().equals(other.getTrajectorySingleToolUseInput())) + return false; + break; + case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1980,6 +2425,30 @@ public int hashCode() { hash = (37 * hash) + TOOL_PARAMETER_KV_MATCH_INPUT_FIELD_NUMBER; hash = (53 * hash) + getToolParameterKvMatchInput().hashCode(); break; + case 33: + hash = (37 * hash) + TRAJECTORY_EXACT_MATCH_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryExactMatchInput().hashCode(); + break; + case 34: + hash = (37 * hash) + TRAJECTORY_IN_ORDER_MATCH_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryInOrderMatchInput().hashCode(); + break; + case 35: + hash = (37 * hash) + TRAJECTORY_ANY_ORDER_MATCH_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryAnyOrderMatchInput().hashCode(); + break; + case 37: + hash = (37 * hash) + TRAJECTORY_PRECISION_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryPrecisionInput().hashCode(); + break; + case 38: + hash = (37 * hash) + TRAJECTORY_RECALL_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryRecallInput().hashCode(); + break; + case 39: + hash = (37 * hash) + TRAJECTORY_SINGLE_TOOL_USE_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectorySingleToolUseInput().hashCode(); + break; case 0: default: } @@ -2192,6 +2661,24 @@ public Builder clear() { if (toolParameterKvMatchInputBuilder_ != null) { toolParameterKvMatchInputBuilder_.clear(); } + if (trajectoryExactMatchInputBuilder_ != null) { + trajectoryExactMatchInputBuilder_.clear(); + } + if (trajectoryInOrderMatchInputBuilder_ != null) { + trajectoryInOrderMatchInputBuilder_.clear(); + } + if (trajectoryAnyOrderMatchInputBuilder_ != null) { + trajectoryAnyOrderMatchInputBuilder_.clear(); + } + if (trajectoryPrecisionInputBuilder_ != null) { + trajectoryPrecisionInputBuilder_.clear(); + } + if (trajectoryRecallInputBuilder_ != null) { + trajectoryRecallInputBuilder_.clear(); + } + if (trajectorySingleToolUseInputBuilder_ != null) { + trajectorySingleToolUseInputBuilder_.clear(); + } location_ = ""; metricInputsCase_ = 0; metricInputs_ = null; @@ -2234,7 +2721,7 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest buildPartial private void buildPartial0( com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.location_ = location_; } } @@ -2312,6 +2799,24 @@ private void buildPartialOneofs( if (metricInputsCase_ == 22 && toolParameterKvMatchInputBuilder_ != null) { result.metricInputs_ = toolParameterKvMatchInputBuilder_.build(); } + if (metricInputsCase_ == 33 && trajectoryExactMatchInputBuilder_ != null) { + result.metricInputs_ = trajectoryExactMatchInputBuilder_.build(); + } + if (metricInputsCase_ == 34 && trajectoryInOrderMatchInputBuilder_ != null) { + result.metricInputs_ = trajectoryInOrderMatchInputBuilder_.build(); + } + if (metricInputsCase_ == 35 && trajectoryAnyOrderMatchInputBuilder_ != null) { + result.metricInputs_ = trajectoryAnyOrderMatchInputBuilder_.build(); + } + if (metricInputsCase_ == 37 && trajectoryPrecisionInputBuilder_ != null) { + result.metricInputs_ = trajectoryPrecisionInputBuilder_.build(); + } + if (metricInputsCase_ == 38 && trajectoryRecallInputBuilder_ != null) { + result.metricInputs_ = trajectoryRecallInputBuilder_.build(); + } + if (metricInputsCase_ == 39 && trajectorySingleToolUseInputBuilder_ != null) { + result.metricInputs_ = trajectorySingleToolUseInputBuilder_.build(); + } } @java.lang.Override @@ -2363,7 +2868,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; onChanged(); } switch (other.getMetricInputsCase()) { @@ -2483,6 +2988,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe mergeToolParameterKvMatchInput(other.getToolParameterKvMatchInput()); break; } + case TRAJECTORY_EXACT_MATCH_INPUT: + { + mergeTrajectoryExactMatchInput(other.getTrajectoryExactMatchInput()); + break; + } + case TRAJECTORY_IN_ORDER_MATCH_INPUT: + { + mergeTrajectoryInOrderMatchInput(other.getTrajectoryInOrderMatchInput()); + break; + } + case TRAJECTORY_ANY_ORDER_MATCH_INPUT: + { + mergeTrajectoryAnyOrderMatchInput(other.getTrajectoryAnyOrderMatchInput()); + break; + } + case TRAJECTORY_PRECISION_INPUT: + { + mergeTrajectoryPrecisionInput(other.getTrajectoryPrecisionInput()); + break; + } + case TRAJECTORY_RECALL_INPUT: + { + mergeTrajectoryRecallInput(other.getTrajectoryRecallInput()); + break; + } + case TRAJECTORY_SINGLE_TOOL_USE_INPUT: + { + mergeTrajectorySingleToolUseInput(other.getTrajectorySingleToolUseInput()); + break; + } case METRICINPUTS_NOT_SET: { break; @@ -2517,7 +3052,7 @@ public Builder mergeFrom( case 10: { location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; break; } // case 10 case 18: @@ -2680,6 +3215,48 @@ public Builder mergeFrom( metricInputsCase_ = 29; break; } // case 234 + case 266: + { + input.readMessage( + getTrajectoryExactMatchInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 33; + break; + } // case 266 + case 274: + { + input.readMessage( + getTrajectoryInOrderMatchInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 34; + break; + } // case 274 + case 282: + { + input.readMessage( + getTrajectoryAnyOrderMatchInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 35; + break; + } // case 282 + case 298: + { + input.readMessage( + getTrajectoryPrecisionInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 37; + break; + } // case 298 + case 306: + { + input.readMessage( + getTrajectoryRecallInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 38; + break; + } // case 306 + case 314: + { + input.readMessage( + getTrajectorySingleToolUseInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 39; + break; + } // case 314 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7967,6 +8544,1414 @@ public Builder clearToolParameterKvMatchInput() { return toolParameterKvMatchInputBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder> + trajectoryExactMatchInputBuilder_; + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return Whether the trajectoryExactMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryExactMatchInput() { + return metricInputsCase_ == 33; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return The trajectoryExactMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + getTrajectoryExactMatchInput() { + if (trajectoryExactMatchInputBuilder_ == null) { + if (metricInputsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 33) { + return trajectoryExactMatchInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public Builder setTrajectoryExactMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput value) { + if (trajectoryExactMatchInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryExactMatchInputBuilder_.setMessage(value); + } + metricInputsCase_ = 33; + return this; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public Builder setTrajectoryExactMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder builderForValue) { + if (trajectoryExactMatchInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryExactMatchInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 33; + return this; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public Builder mergeTrajectoryExactMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput value) { + if (trajectoryExactMatchInputBuilder_ == null) { + if (metricInputsCase_ == 33 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 33) { + trajectoryExactMatchInputBuilder_.mergeFrom(value); + } else { + trajectoryExactMatchInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 33; + return this; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public Builder clearTrajectoryExactMatchInput() { + if (trajectoryExactMatchInputBuilder_ == null) { + if (metricInputsCase_ == 33) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 33) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryExactMatchInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder + getTrajectoryExactMatchInputBuilder() { + return getTrajectoryExactMatchInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder + getTrajectoryExactMatchInputOrBuilder() { + if ((metricInputsCase_ == 33) && (trajectoryExactMatchInputBuilder_ != null)) { + return trajectoryExactMatchInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder> + getTrajectoryExactMatchInputFieldBuilder() { + if (trajectoryExactMatchInputBuilder_ == null) { + if (!(metricInputsCase_ == 33)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + trajectoryExactMatchInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 33; + onChanged(); + return trajectoryExactMatchInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder> + trajectoryInOrderMatchInputBuilder_; + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return Whether the trajectoryInOrderMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryInOrderMatchInput() { + return metricInputsCase_ == 34; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return The trajectoryInOrderMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getTrajectoryInOrderMatchInput() { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 34) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 34) { + return trajectoryInOrderMatchInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public Builder setTrajectoryInOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput value) { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryInOrderMatchInputBuilder_.setMessage(value); + } + metricInputsCase_ = 34; + return this; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public Builder setTrajectoryInOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder builderForValue) { + if (trajectoryInOrderMatchInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryInOrderMatchInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 34; + return this; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public Builder mergeTrajectoryInOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput value) { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 34 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 34) { + trajectoryInOrderMatchInputBuilder_.mergeFrom(value); + } else { + trajectoryInOrderMatchInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 34; + return this; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public Builder clearTrajectoryInOrderMatchInput() { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 34) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 34) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryInOrderMatchInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder + getTrajectoryInOrderMatchInputBuilder() { + return getTrajectoryInOrderMatchInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder + getTrajectoryInOrderMatchInputOrBuilder() { + if ((metricInputsCase_ == 34) && (trajectoryInOrderMatchInputBuilder_ != null)) { + return trajectoryInOrderMatchInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 34) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder> + getTrajectoryInOrderMatchInputFieldBuilder() { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (!(metricInputsCase_ == 34)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + trajectoryInOrderMatchInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 34; + onChanged(); + return trajectoryInOrderMatchInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder> + trajectoryAnyOrderMatchInputBuilder_; + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return Whether the trajectoryAnyOrderMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryAnyOrderMatchInput() { + return metricInputsCase_ == 35; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return The trajectoryAnyOrderMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getTrajectoryAnyOrderMatchInput() { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + .getDefaultInstance(); + } else { + if (metricInputsCase_ == 35) { + return trajectoryAnyOrderMatchInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public Builder setTrajectoryAnyOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput value) { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryAnyOrderMatchInputBuilder_.setMessage(value); + } + metricInputsCase_ = 35; + return this; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public Builder setTrajectoryAnyOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder builderForValue) { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryAnyOrderMatchInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 35; + return this; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public Builder mergeTrajectoryAnyOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput value) { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 35 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 35) { + trajectoryAnyOrderMatchInputBuilder_.mergeFrom(value); + } else { + trajectoryAnyOrderMatchInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 35; + return this; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public Builder clearTrajectoryAnyOrderMatchInput() { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 35) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 35) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryAnyOrderMatchInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder + getTrajectoryAnyOrderMatchInputBuilder() { + return getTrajectoryAnyOrderMatchInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder + getTrajectoryAnyOrderMatchInputOrBuilder() { + if ((metricInputsCase_ == 35) && (trajectoryAnyOrderMatchInputBuilder_ != null)) { + return trajectoryAnyOrderMatchInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder> + getTrajectoryAnyOrderMatchInputFieldBuilder() { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (!(metricInputsCase_ == 35)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance(); + } + trajectoryAnyOrderMatchInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 35; + onChanged(); + return trajectoryAnyOrderMatchInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder> + trajectoryPrecisionInputBuilder_; + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return Whether the trajectoryPrecisionInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryPrecisionInput() { + return metricInputsCase_ == 37; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return The trajectoryPrecisionInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + getTrajectoryPrecisionInput() { + if (trajectoryPrecisionInputBuilder_ == null) { + if (metricInputsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 37) { + return trajectoryPrecisionInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public Builder setTrajectoryPrecisionInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput value) { + if (trajectoryPrecisionInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryPrecisionInputBuilder_.setMessage(value); + } + metricInputsCase_ = 37; + return this; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public Builder setTrajectoryPrecisionInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder builderForValue) { + if (trajectoryPrecisionInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryPrecisionInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 37; + return this; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public Builder mergeTrajectoryPrecisionInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput value) { + if (trajectoryPrecisionInputBuilder_ == null) { + if (metricInputsCase_ == 37 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 37) { + trajectoryPrecisionInputBuilder_.mergeFrom(value); + } else { + trajectoryPrecisionInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 37; + return this; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public Builder clearTrajectoryPrecisionInput() { + if (trajectoryPrecisionInputBuilder_ == null) { + if (metricInputsCase_ == 37) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 37) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryPrecisionInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder + getTrajectoryPrecisionInputBuilder() { + return getTrajectoryPrecisionInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder + getTrajectoryPrecisionInputOrBuilder() { + if ((metricInputsCase_ == 37) && (trajectoryPrecisionInputBuilder_ != null)) { + return trajectoryPrecisionInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder> + getTrajectoryPrecisionInputFieldBuilder() { + if (trajectoryPrecisionInputBuilder_ == null) { + if (!(metricInputsCase_ == 37)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + trajectoryPrecisionInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 37; + onChanged(); + return trajectoryPrecisionInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder> + trajectoryRecallInputBuilder_; + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return Whether the trajectoryRecallInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryRecallInput() { + return metricInputsCase_ == 38; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return The trajectoryRecallInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getTrajectoryRecallInput() { + if (trajectoryRecallInputBuilder_ == null) { + if (metricInputsCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 38) { + return trajectoryRecallInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public Builder setTrajectoryRecallInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput value) { + if (trajectoryRecallInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryRecallInputBuilder_.setMessage(value); + } + metricInputsCase_ = 38; + return this; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public Builder setTrajectoryRecallInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder builderForValue) { + if (trajectoryRecallInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryRecallInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 38; + return this; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public Builder mergeTrajectoryRecallInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput value) { + if (trajectoryRecallInputBuilder_ == null) { + if (metricInputsCase_ == 38 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 38) { + trajectoryRecallInputBuilder_.mergeFrom(value); + } else { + trajectoryRecallInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 38; + return this; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public Builder clearTrajectoryRecallInput() { + if (trajectoryRecallInputBuilder_ == null) { + if (metricInputsCase_ == 38) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 38) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryRecallInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder + getTrajectoryRecallInputBuilder() { + return getTrajectoryRecallInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder + getTrajectoryRecallInputOrBuilder() { + if ((metricInputsCase_ == 38) && (trajectoryRecallInputBuilder_ != null)) { + return trajectoryRecallInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder> + getTrajectoryRecallInputFieldBuilder() { + if (trajectoryRecallInputBuilder_ == null) { + if (!(metricInputsCase_ == 38)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + trajectoryRecallInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 38; + onChanged(); + return trajectoryRecallInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder> + trajectorySingleToolUseInputBuilder_; + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return Whether the trajectorySingleToolUseInput field is set. + */ + @java.lang.Override + public boolean hasTrajectorySingleToolUseInput() { + return metricInputsCase_ == 39; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return The trajectorySingleToolUseInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getTrajectorySingleToolUseInput() { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (metricInputsCase_ == 39) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + .getDefaultInstance(); + } else { + if (metricInputsCase_ == 39) { + return trajectorySingleToolUseInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public Builder setTrajectorySingleToolUseInput( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput value) { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectorySingleToolUseInputBuilder_.setMessage(value); + } + metricInputsCase_ = 39; + return this; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public Builder setTrajectorySingleToolUseInput( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder builderForValue) { + if (trajectorySingleToolUseInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectorySingleToolUseInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 39; + return this; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public Builder mergeTrajectorySingleToolUseInput( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput value) { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (metricInputsCase_ == 39 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 39) { + trajectorySingleToolUseInputBuilder_.mergeFrom(value); + } else { + trajectorySingleToolUseInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 39; + return this; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public Builder clearTrajectorySingleToolUseInput() { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (metricInputsCase_ == 39) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 39) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectorySingleToolUseInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder + getTrajectorySingleToolUseInputBuilder() { + return getTrajectorySingleToolUseInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder + getTrajectorySingleToolUseInputOrBuilder() { + if ((metricInputsCase_ == 39) && (trajectorySingleToolUseInputBuilder_ != null)) { + return trajectorySingleToolUseInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 39) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder> + getTrajectorySingleToolUseInputFieldBuilder() { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (!(metricInputsCase_ == 39)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance(); + } + trajectorySingleToolUseInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 39; + onChanged(); + return trajectorySingleToolUseInputBuilder_; + } + private java.lang.Object location_ = ""; /** * @@ -8038,7 +10023,7 @@ public Builder setLocation(java.lang.String value) { throw new NullPointerException(); } location_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -8058,7 +10043,7 @@ public Builder setLocation(java.lang.String value) { */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } @@ -8083,7 +10068,7 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); location_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java index 70bbee41dd69..6f45d55fb315 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java @@ -933,6 +933,257 @@ public interface EvaluateInstancesRequestOrBuilder com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInputOrBuilder getToolParameterKvMatchInputOrBuilder(); + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return Whether the trajectoryExactMatchInput field is set. + */ + boolean hasTrajectoryExactMatchInput(); + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return The trajectoryExactMatchInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput getTrajectoryExactMatchInput(); + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder + getTrajectoryExactMatchInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return Whether the trajectoryInOrderMatchInput field is set. + */ + boolean hasTrajectoryInOrderMatchInput(); + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return The trajectoryInOrderMatchInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput getTrajectoryInOrderMatchInput(); + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder + getTrajectoryInOrderMatchInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return Whether the trajectoryAnyOrderMatchInput field is set. + */ + boolean hasTrajectoryAnyOrderMatchInput(); + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return The trajectoryAnyOrderMatchInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getTrajectoryAnyOrderMatchInput(); + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder + getTrajectoryAnyOrderMatchInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return Whether the trajectoryPrecisionInput field is set. + */ + boolean hasTrajectoryPrecisionInput(); + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return The trajectoryPrecisionInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput getTrajectoryPrecisionInput(); + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder + getTrajectoryPrecisionInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return Whether the trajectoryRecallInput field is set. + */ + boolean hasTrajectoryRecallInput(); + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return The trajectoryRecallInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getTrajectoryRecallInput(); + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder + getTrajectoryRecallInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return Whether the trajectorySingleToolUseInput field is set. + */ + boolean hasTrajectorySingleToolUseInput(); + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return The trajectorySingleToolUseInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getTrajectorySingleToolUseInput(); + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder + getTrajectorySingleToolUseInputOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java index 086543fb8976..10c1f845b1d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java @@ -93,6 +93,12 @@ public enum EvaluationResultsCase TOOL_NAME_MATCH_RESULTS(19), TOOL_PARAMETER_KEY_MATCH_RESULTS(20), TOOL_PARAMETER_KV_MATCH_RESULTS(21), + TRAJECTORY_EXACT_MATCH_RESULTS(31), + TRAJECTORY_IN_ORDER_MATCH_RESULTS(32), + TRAJECTORY_ANY_ORDER_MATCH_RESULTS(33), + TRAJECTORY_PRECISION_RESULTS(35), + TRAJECTORY_RECALL_RESULTS(36), + TRAJECTORY_SINGLE_TOOL_USE_RESULTS(37), EVALUATIONRESULTS_NOT_SET(0); private final int value; @@ -157,6 +163,18 @@ public static EvaluationResultsCase forNumber(int value) { return TOOL_PARAMETER_KEY_MATCH_RESULTS; case 21: return TOOL_PARAMETER_KV_MATCH_RESULTS; + case 31: + return TRAJECTORY_EXACT_MATCH_RESULTS; + case 32: + return TRAJECTORY_IN_ORDER_MATCH_RESULTS; + case 33: + return TRAJECTORY_ANY_ORDER_MATCH_RESULTS; + case 35: + return TRAJECTORY_PRECISION_RESULTS; + case 36: + return TRAJECTORY_RECALL_RESULTS; + case 37: + return TRAJECTORY_SINGLE_TOOL_USE_RESULTS; case 0: return EVALUATIONRESULTS_NOT_SET; default: @@ -1496,6 +1514,360 @@ public boolean hasToolParameterKvMatchResults() { return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } + public static final int TRAJECTORY_EXACT_MATCH_RESULTS_FIELD_NUMBER = 31; + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + * + * @return Whether the trajectoryExactMatchResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryExactMatchResults() { + return evaluationResultsCase_ == 31; + } + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + * + * @return The trajectoryExactMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + getTrajectoryExactMatchResults() { + if (evaluationResultsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); + } + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder + getTrajectoryExactMatchResultsOrBuilder() { + if (evaluationResultsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_IN_ORDER_MATCH_RESULTS_FIELD_NUMBER = 32; + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + * + * @return Whether the trajectoryInOrderMatchResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryInOrderMatchResults() { + return evaluationResultsCase_ == 32; + } + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + * + * @return The trajectoryInOrderMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getTrajectoryInOrderMatchResults() { + if (evaluationResultsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.getDefaultInstance(); + } + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder + getTrajectoryInOrderMatchResultsOrBuilder() { + if (evaluationResultsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_ANY_ORDER_MATCH_RESULTS_FIELD_NUMBER = 33; + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + * + * @return Whether the trajectoryAnyOrderMatchResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryAnyOrderMatchResults() { + return evaluationResultsCase_ == 33; + } + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + * + * @return The trajectoryAnyOrderMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getTrajectoryAnyOrderMatchResults() { + if (evaluationResultsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.getDefaultInstance(); + } + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder + getTrajectoryAnyOrderMatchResultsOrBuilder() { + if (evaluationResultsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_PRECISION_RESULTS_FIELD_NUMBER = 35; + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + * + * @return Whether the trajectoryPrecisionResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryPrecisionResults() { + return evaluationResultsCase_ == 35; + } + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + * + * @return The trajectoryPrecisionResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + getTrajectoryPrecisionResults() { + if (evaluationResultsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); + } + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder + getTrajectoryPrecisionResultsOrBuilder() { + if (evaluationResultsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_RECALL_RESULTS_FIELD_NUMBER = 36; + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + * + * @return Whether the trajectoryRecallResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryRecallResults() { + return evaluationResultsCase_ == 36; + } + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + * + * @return The trajectoryRecallResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults getTrajectoryRecallResults() { + if (evaluationResultsCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); + } + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder + getTrajectoryRecallResultsOrBuilder() { + if (evaluationResultsCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_SINGLE_TOOL_USE_RESULTS_FIELD_NUMBER = 37; + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + * + * @return Whether the trajectorySingleToolUseResults field is set. + */ + @java.lang.Override + public boolean hasTrajectorySingleToolUseResults() { + return evaluationResultsCase_ == 37; + } + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + * + * @return The trajectorySingleToolUseResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getTrajectorySingleToolUseResults() { + if (evaluationResultsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.getDefaultInstance(); + } + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder + getTrajectorySingleToolUseResultsOrBuilder() { + if (evaluationResultsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1613,6 +1985,33 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 28, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_); } + if (evaluationResultsCase_ == 31) { + output.writeMessage( + 31, (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_); + } + if (evaluationResultsCase_ == 32) { + output.writeMessage( + 32, + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) evaluationResults_); + } + if (evaluationResultsCase_ == 33) { + output.writeMessage( + 33, + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) evaluationResults_); + } + if (evaluationResultsCase_ == 35) { + output.writeMessage( + 35, (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_); + } + if (evaluationResultsCase_ == 36) { + output.writeMessage( + 36, (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_); + } + if (evaluationResultsCase_ == 37) { + output.writeMessage( + 37, + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_); + } getUnknownFields().writeTo(output); } @@ -1757,20 +2156,58 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 28, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse)) { - return super.equals(obj); + if (evaluationResultsCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_); } - com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse other = + if (evaluationResultsCase_ == 32) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 32, + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_); + } + if (evaluationResultsCase_ == 33) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_); + } + if (evaluationResultsCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_); + } + if (evaluationResultsCase_ == 36) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 36, (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_); + } + if (evaluationResultsCase_ == 37) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 37, + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + evaluationResults_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse other = (com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse) obj; if (!getEvaluationResultsCase().equals(other.getEvaluationResultsCase())) return false; @@ -1855,6 +2292,29 @@ public boolean equals(final java.lang.Object obj) { if (!getToolParameterKvMatchResults().equals(other.getToolParameterKvMatchResults())) return false; break; + case 31: + if (!getTrajectoryExactMatchResults().equals(other.getTrajectoryExactMatchResults())) + return false; + break; + case 32: + if (!getTrajectoryInOrderMatchResults().equals(other.getTrajectoryInOrderMatchResults())) + return false; + break; + case 33: + if (!getTrajectoryAnyOrderMatchResults().equals(other.getTrajectoryAnyOrderMatchResults())) + return false; + break; + case 35: + if (!getTrajectoryPrecisionResults().equals(other.getTrajectoryPrecisionResults())) + return false; + break; + case 36: + if (!getTrajectoryRecallResults().equals(other.getTrajectoryRecallResults())) return false; + break; + case 37: + if (!getTrajectorySingleToolUseResults().equals(other.getTrajectorySingleToolUseResults())) + return false; + break; case 0: default: } @@ -1962,6 +2422,30 @@ public int hashCode() { hash = (37 * hash) + TOOL_PARAMETER_KV_MATCH_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getToolParameterKvMatchResults().hashCode(); break; + case 31: + hash = (37 * hash) + TRAJECTORY_EXACT_MATCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryExactMatchResults().hashCode(); + break; + case 32: + hash = (37 * hash) + TRAJECTORY_IN_ORDER_MATCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryInOrderMatchResults().hashCode(); + break; + case 33: + hash = (37 * hash) + TRAJECTORY_ANY_ORDER_MATCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryAnyOrderMatchResults().hashCode(); + break; + case 35: + hash = (37 * hash) + TRAJECTORY_PRECISION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryPrecisionResults().hashCode(); + break; + case 36: + hash = (37 * hash) + TRAJECTORY_RECALL_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryRecallResults().hashCode(); + break; + case 37: + hash = (37 * hash) + TRAJECTORY_SINGLE_TOOL_USE_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectorySingleToolUseResults().hashCode(); + break; case 0: default: } @@ -2174,6 +2658,24 @@ public Builder clear() { if (toolParameterKvMatchResultsBuilder_ != null) { toolParameterKvMatchResultsBuilder_.clear(); } + if (trajectoryExactMatchResultsBuilder_ != null) { + trajectoryExactMatchResultsBuilder_.clear(); + } + if (trajectoryInOrderMatchResultsBuilder_ != null) { + trajectoryInOrderMatchResultsBuilder_.clear(); + } + if (trajectoryAnyOrderMatchResultsBuilder_ != null) { + trajectoryAnyOrderMatchResultsBuilder_.clear(); + } + if (trajectoryPrecisionResultsBuilder_ != null) { + trajectoryPrecisionResultsBuilder_.clear(); + } + if (trajectoryRecallResultsBuilder_ != null) { + trajectoryRecallResultsBuilder_.clear(); + } + if (trajectorySingleToolUseResultsBuilder_ != null) { + trajectorySingleToolUseResultsBuilder_.clear(); + } evaluationResultsCase_ = 0; evaluationResults_ = null; return this; @@ -2290,6 +2792,24 @@ private void buildPartialOneofs( if (evaluationResultsCase_ == 21 && toolParameterKvMatchResultsBuilder_ != null) { result.evaluationResults_ = toolParameterKvMatchResultsBuilder_.build(); } + if (evaluationResultsCase_ == 31 && trajectoryExactMatchResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryExactMatchResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 32 && trajectoryInOrderMatchResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryInOrderMatchResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 33 && trajectoryAnyOrderMatchResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryAnyOrderMatchResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 35 && trajectoryPrecisionResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryPrecisionResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 36 && trajectoryRecallResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryRecallResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 37 && trajectorySingleToolUseResultsBuilder_ != null) { + result.evaluationResults_ = trajectorySingleToolUseResultsBuilder_.build(); + } } @java.lang.Override @@ -2456,6 +2976,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe mergeToolParameterKvMatchResults(other.getToolParameterKvMatchResults()); break; } + case TRAJECTORY_EXACT_MATCH_RESULTS: + { + mergeTrajectoryExactMatchResults(other.getTrajectoryExactMatchResults()); + break; + } + case TRAJECTORY_IN_ORDER_MATCH_RESULTS: + { + mergeTrajectoryInOrderMatchResults(other.getTrajectoryInOrderMatchResults()); + break; + } + case TRAJECTORY_ANY_ORDER_MATCH_RESULTS: + { + mergeTrajectoryAnyOrderMatchResults(other.getTrajectoryAnyOrderMatchResults()); + break; + } + case TRAJECTORY_PRECISION_RESULTS: + { + mergeTrajectoryPrecisionResults(other.getTrajectoryPrecisionResults()); + break; + } + case TRAJECTORY_RECALL_RESULTS: + { + mergeTrajectoryRecallResults(other.getTrajectoryRecallResults()); + break; + } + case TRAJECTORY_SINGLE_TOOL_USE_RESULTS: + { + mergeTrajectorySingleToolUseResults(other.getTrajectorySingleToolUseResults()); + break; + } case EVALUATIONRESULTS_NOT_SET: { break; @@ -2650,6 +3200,50 @@ public Builder mergeFrom( evaluationResultsCase_ = 28; break; } // case 226 + case 250: + { + input.readMessage( + getTrajectoryExactMatchResultsFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 31; + break; + } // case 250 + case 258: + { + input.readMessage( + getTrajectoryInOrderMatchResultsFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 32; + break; + } // case 258 + case 266: + { + input.readMessage( + getTrajectoryAnyOrderMatchResultsFieldBuilder().getBuilder(), + extensionRegistry); + evaluationResultsCase_ = 33; + break; + } // case 266 + case 282: + { + input.readMessage( + getTrajectoryPrecisionResultsFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 35; + break; + } // case 282 + case 290: + { + input.readMessage( + getTrajectoryRecallResultsFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 36; + break; + } // case 290 + case 298: + { + input.readMessage( + getTrajectorySingleToolUseResultsFieldBuilder().getBuilder(), + extensionRegistry); + evaluationResultsCase_ = 37; + break; + } // case 298 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6383,119 +6977,1517 @@ public Builder clearQuestionAnsweringHelpfulnessResult() { * * *
-     * Result for question answering correctness metric.
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + * + * @return Whether the questionAnsweringCorrectnessResult field is set. + */ + @java.lang.Override + public boolean hasQuestionAnsweringCorrectnessResult() { + return evaluationResultsCase_ == 17; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + * + * @return The questionAnsweringCorrectnessResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + getQuestionAnsweringCorrectnessResult() { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (evaluationResultsCase_ == 17) { + return (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 17) { + return questionAnsweringCorrectnessResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public Builder setQuestionAnsweringCorrectnessResult( + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult value) { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + questionAnsweringCorrectnessResultBuilder_.setMessage(value); + } + evaluationResultsCase_ = 17; + return this; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public Builder setQuestionAnsweringCorrectnessResult( + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder + builderForValue) { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + questionAnsweringCorrectnessResultBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 17; + return this; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public Builder mergeQuestionAnsweringCorrectnessResult( + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult value) { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (evaluationResultsCase_ == 17 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 17) { + questionAnsweringCorrectnessResultBuilder_.mergeFrom(value); + } else { + questionAnsweringCorrectnessResultBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 17; + return this; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public Builder clearQuestionAnsweringCorrectnessResult() { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (evaluationResultsCase_ == 17) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 17) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + questionAnsweringCorrectnessResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder + getQuestionAnsweringCorrectnessResultBuilder() { + return getQuestionAnsweringCorrectnessResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder + getQuestionAnsweringCorrectnessResultOrBuilder() { + if ((evaluationResultsCase_ == 17) && (questionAnsweringCorrectnessResultBuilder_ != null)) { + return questionAnsweringCorrectnessResultBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 17) { + return (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult, + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder, + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder> + getQuestionAnsweringCorrectnessResultFieldBuilder() { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (!(evaluationResultsCase_ == 17)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance(); + } + questionAnsweringCorrectnessResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult, + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder, + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 17; + onChanged(); + return questionAnsweringCorrectnessResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> + pointwiseMetricResultBuilder_; + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * + * @return Whether the pointwiseMetricResult field is set. + */ + @java.lang.Override + public boolean hasPointwiseMetricResult() { + return evaluationResultsCase_ == 27; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * + * @return The pointwiseMetricResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult getPointwiseMetricResult() { + if (pointwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 27) { + return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 27) { + return pointwiseMetricResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public Builder setPointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { + if (pointwiseMetricResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + pointwiseMetricResultBuilder_.setMessage(value); + } + evaluationResultsCase_ = 27; + return this; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public Builder setPointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder builderForValue) { + if (pointwiseMetricResultBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + pointwiseMetricResultBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 27; + return this; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public Builder mergePointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { + if (pointwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 27 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) + evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 27) { + pointwiseMetricResultBuilder_.mergeFrom(value); + } else { + pointwiseMetricResultBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 27; + return this; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public Builder clearPointwiseMetricResult() { + if (pointwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 27) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 27) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + pointwiseMetricResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder + getPointwiseMetricResultBuilder() { + return getPointwiseMetricResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder + getPointwiseMetricResultOrBuilder() { + if ((evaluationResultsCase_ == 27) && (pointwiseMetricResultBuilder_ != null)) { + return pointwiseMetricResultBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 27) { + return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> + getPointwiseMetricResultFieldBuilder() { + if (pointwiseMetricResultBuilder_ == null) { + if (!(evaluationResultsCase_ == 27)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + pointwiseMetricResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 27; + onChanged(); + return pointwiseMetricResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> + pairwiseMetricResultBuilder_; + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * + * @return Whether the pairwiseMetricResult field is set. + */ + @java.lang.Override + public boolean hasPairwiseMetricResult() { + return evaluationResultsCase_ == 28; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * + * @return The pairwiseMetricResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult getPairwiseMetricResult() { + if (pairwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 28) { + return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 28) { + return pairwiseMetricResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public Builder setPairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { + if (pairwiseMetricResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + pairwiseMetricResultBuilder_.setMessage(value); + } + evaluationResultsCase_ = 28; + return this; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public Builder setPairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder builderForValue) { + if (pairwiseMetricResultBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + pairwiseMetricResultBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 28; + return this; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public Builder mergePairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { + if (pairwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 28 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 28) { + pairwiseMetricResultBuilder_.mergeFrom(value); + } else { + pairwiseMetricResultBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 28; + return this; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public Builder clearPairwiseMetricResult() { + if (pairwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 28) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 28) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + pairwiseMetricResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder + getPairwiseMetricResultBuilder() { + return getPairwiseMetricResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder + getPairwiseMetricResultOrBuilder() { + if ((evaluationResultsCase_ == 28) && (pairwiseMetricResultBuilder_ != null)) { + return pairwiseMetricResultBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 28) { + return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> + getPairwiseMetricResultFieldBuilder() { + if (pairwiseMetricResultBuilder_ == null) { + if (!(evaluationResultsCase_ == 28)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + pairwiseMetricResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 28; + onChanged(); + return pairwiseMetricResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder> + toolCallValidResultsBuilder_; + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * + * @return Whether the toolCallValidResults field is set. + */ + @java.lang.Override + public boolean hasToolCallValidResults() { + return evaluationResultsCase_ == 18; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * + * @return The toolCallValidResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCallValidResults getToolCallValidResults() { + if (toolCallValidResultsBuilder_ == null) { + if (evaluationResultsCase_ == 18) { + return (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 18) { + return toolCallValidResultsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + } + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public Builder setToolCallValidResults( + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults value) { + if (toolCallValidResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + toolCallValidResultsBuilder_.setMessage(value); + } + evaluationResultsCase_ = 18; + return this; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public Builder setToolCallValidResults( + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder builderForValue) { + if (toolCallValidResultsBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + toolCallValidResultsBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 18; + return this; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public Builder mergeToolCallValidResults( + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults value) { + if (toolCallValidResultsBuilder_ == null) { + if (evaluationResultsCase_ == 18 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 18) { + toolCallValidResultsBuilder_.mergeFrom(value); + } else { + toolCallValidResultsBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 18; + return this; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public Builder clearToolCallValidResults() { + if (toolCallValidResultsBuilder_ == null) { + if (evaluationResultsCase_ == 18) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 18) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + toolCallValidResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder + getToolCallValidResultsBuilder() { + return getToolCallValidResultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder + getToolCallValidResultsOrBuilder() { + if ((evaluationResultsCase_ == 18) && (toolCallValidResultsBuilder_ != null)) { + return toolCallValidResultsBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 18) { + return (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + } + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder> + getToolCallValidResultsFieldBuilder() { + if (toolCallValidResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 18)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + } + toolCallValidResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 18; + onChanged(); + return toolCallValidResultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder> + toolNameMatchResultsBuilder_; + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * + * @return Whether the toolNameMatchResults field is set. + */ + @java.lang.Override + public boolean hasToolNameMatchResults() { + return evaluationResultsCase_ == 19; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * + * @return The toolNameMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults getToolNameMatchResults() { + if (toolNameMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 19) { + return (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 19) { + return toolNameMatchResultsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + } + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public Builder setToolNameMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults value) { + if (toolNameMatchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + toolNameMatchResultsBuilder_.setMessage(value); + } + evaluationResultsCase_ = 19; + return this; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public Builder setToolNameMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder builderForValue) { + if (toolNameMatchResultsBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + toolNameMatchResultsBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 19; + return this; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public Builder mergeToolNameMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults value) { + if (toolNameMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 19 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 19) { + toolNameMatchResultsBuilder_.mergeFrom(value); + } else { + toolNameMatchResultsBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 19; + return this; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public Builder clearToolNameMatchResults() { + if (toolNameMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 19) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 19) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + toolNameMatchResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder + getToolNameMatchResultsBuilder() { + return getToolNameMatchResultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder + getToolNameMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 19) && (toolNameMatchResultsBuilder_ != null)) { + return toolNameMatchResultsBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 19) { + return (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + } + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder> + getToolNameMatchResultsFieldBuilder() { + if (toolNameMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 19)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + } + toolNameMatchResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 19; + onChanged(); + return toolNameMatchResultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder> + toolParameterKeyMatchResultsBuilder_; + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + * + * @return Whether the toolParameterKeyMatchResults field is set. + */ + @java.lang.Override + public boolean hasToolParameterKeyMatchResults() { + return evaluationResultsCase_ == 20; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + * + * @return The toolParameterKeyMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + getToolParameterKeyMatchResults() { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 20) { + return (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + .getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 20) { + return toolParameterKeyMatchResultsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public Builder setToolParameterKeyMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults value) { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + toolParameterKeyMatchResultsBuilder_.setMessage(value); + } + evaluationResultsCase_ = 20; + return this; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public Builder setToolParameterKeyMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder builderForValue) { + if (toolParameterKeyMatchResultsBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + toolParameterKeyMatchResultsBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 20; + return this; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public Builder mergeToolParameterKeyMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults value) { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 20 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + .getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 20) { + toolParameterKeyMatchResultsBuilder_.mergeFrom(value); + } else { + toolParameterKeyMatchResultsBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 20; + return this; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public Builder clearToolParameterKeyMatchResults() { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 20) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 20) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + toolParameterKeyMatchResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder + getToolParameterKeyMatchResultsBuilder() { + return getToolParameterKeyMatchResultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder + getToolParameterKeyMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 20) && (toolParameterKeyMatchResultsBuilder_ != null)) { + return toolParameterKeyMatchResultsBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 20) { + return (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder> + getToolParameterKeyMatchResultsFieldBuilder() { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 20)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.getDefaultInstance(); + } + toolParameterKeyMatchResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 20; + onChanged(); + return toolParameterKeyMatchResultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder> + toolParameterKvMatchResultsBuilder_; + /** + * + * + *
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * * - * @return Whether the questionAnsweringCorrectnessResult field is set. + * @return Whether the toolParameterKvMatchResults field is set. */ @java.lang.Override - public boolean hasQuestionAnsweringCorrectnessResult() { - return evaluationResultsCase_ == 17; + public boolean hasToolParameterKvMatchResults() { + return evaluationResultsCase_ == 21; } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * * - * @return The questionAnsweringCorrectnessResult. + * @return The toolParameterKvMatchResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - getQuestionAnsweringCorrectnessResult() { - if (questionAnsweringCorrectnessResultBuilder_ == null) { - if (evaluationResultsCase_ == 17) { - return (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults + getToolParameterKvMatchResults() { + if (toolParameterKvMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 21) { + return (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } else { - if (evaluationResultsCase_ == 17) { - return questionAnsweringCorrectnessResultBuilder_.getMessage(); + if (evaluationResultsCase_ == 21) { + return toolParameterKvMatchResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public Builder setQuestionAnsweringCorrectnessResult( - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult value) { - if (questionAnsweringCorrectnessResultBuilder_ == null) { + public Builder setToolParameterKvMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults value) { + if (toolParameterKvMatchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - questionAnsweringCorrectnessResultBuilder_.setMessage(value); + toolParameterKvMatchResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 17; + evaluationResultsCase_ = 21; return this; } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public Builder setQuestionAnsweringCorrectnessResult( - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder - builderForValue) { - if (questionAnsweringCorrectnessResultBuilder_ == null) { + public Builder setToolParameterKvMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder builderForValue) { + if (toolParameterKvMatchResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - questionAnsweringCorrectnessResultBuilder_.setMessage(builderForValue.build()); + toolParameterKvMatchResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 17; + evaluationResultsCase_ = 21; return this; } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public Builder mergeQuestionAnsweringCorrectnessResult( - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult value) { - if (questionAnsweringCorrectnessResultBuilder_ == null) { - if (evaluationResultsCase_ == 17 + public Builder mergeToolParameterKvMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults value) { + if (toolParameterKvMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 21 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + != com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.newBuilder( - (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) evaluationResults_) .mergeFrom(value) .buildPartial(); @@ -6504,39 +8496,39 @@ public Builder mergeQuestionAnsweringCorrectnessResult( } onChanged(); } else { - if (evaluationResultsCase_ == 17) { - questionAnsweringCorrectnessResultBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 21) { + toolParameterKvMatchResultsBuilder_.mergeFrom(value); } else { - questionAnsweringCorrectnessResultBuilder_.setMessage(value); + toolParameterKvMatchResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 17; + evaluationResultsCase_ = 21; return this; } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public Builder clearQuestionAnsweringCorrectnessResult() { - if (questionAnsweringCorrectnessResultBuilder_ == null) { - if (evaluationResultsCase_ == 17) { + public Builder clearToolParameterKvMatchResults() { + if (toolParameterKvMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 21) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 17) { + if (evaluationResultsCase_ == 21) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - questionAnsweringCorrectnessResultBuilder_.clear(); + toolParameterKvMatchResultsBuilder_.clear(); } return this; } @@ -6544,196 +8536,197 @@ public Builder clearQuestionAnsweringCorrectnessResult() { * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder - getQuestionAnsweringCorrectnessResultBuilder() { - return getQuestionAnsweringCorrectnessResultFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder + getToolParameterKvMatchResultsBuilder() { + return getToolParameterKvMatchResultsFieldBuilder().getBuilder(); } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder - getQuestionAnsweringCorrectnessResultOrBuilder() { - if ((evaluationResultsCase_ == 17) && (questionAnsweringCorrectnessResultBuilder_ != null)) { - return questionAnsweringCorrectnessResultBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder + getToolParameterKvMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 21) && (toolParameterKvMatchResultsBuilder_ != null)) { + return toolParameterKvMatchResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 17) { - return (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + if (evaluationResultsCase_ == 21) { + return (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult, - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder, - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder> - getQuestionAnsweringCorrectnessResultFieldBuilder() { - if (questionAnsweringCorrectnessResultBuilder_ == null) { - if (!(evaluationResultsCase_ == 17)) { + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder> + getToolParameterKvMatchResultsFieldBuilder() { + if (toolParameterKvMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 21)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - .getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } - questionAnsweringCorrectnessResultBuilder_ = + toolParameterKvMatchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult, - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder, - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 17; + evaluationResultsCase_ = 21; onChanged(); - return questionAnsweringCorrectnessResultBuilder_; + return toolParameterKvMatchResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> - pointwiseMetricResultBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder> + trajectoryExactMatchResultsBuilder_; /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * * - * @return Whether the pointwiseMetricResult field is set. + * @return Whether the trajectoryExactMatchResults field is set. */ @java.lang.Override - public boolean hasPointwiseMetricResult() { - return evaluationResultsCase_ == 27; + public boolean hasTrajectoryExactMatchResults() { + return evaluationResultsCase_ == 31; } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * * - * @return The pointwiseMetricResult. + * @return The trajectoryExactMatchResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult getPointwiseMetricResult() { - if (pointwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 27) { - return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + getTrajectoryExactMatchResults() { + if (trajectoryExactMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); } else { - if (evaluationResultsCase_ == 27) { - return pointwiseMetricResultBuilder_.getMessage(); + if (evaluationResultsCase_ == 31) { + return trajectoryExactMatchResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); } } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public Builder setPointwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { - if (pointwiseMetricResultBuilder_ == null) { + public Builder setTrajectoryExactMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults value) { + if (trajectoryExactMatchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - pointwiseMetricResultBuilder_.setMessage(value); + trajectoryExactMatchResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 27; + evaluationResultsCase_ = 31; return this; } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public Builder setPointwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder builderForValue) { - if (pointwiseMetricResultBuilder_ == null) { + public Builder setTrajectoryExactMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder builderForValue) { + if (trajectoryExactMatchResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - pointwiseMetricResultBuilder_.setMessage(builderForValue.build()); + trajectoryExactMatchResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 27; + evaluationResultsCase_ = 31; return this; } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public Builder mergePointwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { - if (pointwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 27 + public Builder mergeTrajectoryExactMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults value) { + if (trajectoryExactMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 31 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.newBuilder( - (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_) .mergeFrom(value) .buildPartial(); @@ -6742,39 +8735,39 @@ public Builder mergePointwiseMetricResult( } onChanged(); } else { - if (evaluationResultsCase_ == 27) { - pointwiseMetricResultBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 31) { + trajectoryExactMatchResultsBuilder_.mergeFrom(value); } else { - pointwiseMetricResultBuilder_.setMessage(value); + trajectoryExactMatchResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 27; + evaluationResultsCase_ = 31; return this; } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public Builder clearPointwiseMetricResult() { - if (pointwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 27) { + public Builder clearTrajectoryExactMatchResults() { + if (trajectoryExactMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 31) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 27) { + if (evaluationResultsCase_ == 31) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - pointwiseMetricResultBuilder_.clear(); + trajectoryExactMatchResultsBuilder_.clear(); } return this; } @@ -6782,187 +8775,200 @@ public Builder clearPointwiseMetricResult() { * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder - getPointwiseMetricResultBuilder() { - return getPointwiseMetricResultFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder + getTrajectoryExactMatchResultsBuilder() { + return getTrajectoryExactMatchResultsFieldBuilder().getBuilder(); } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder - getPointwiseMetricResultOrBuilder() { - if ((evaluationResultsCase_ == 27) && (pointwiseMetricResultBuilder_ != null)) { - return pointwiseMetricResultBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder + getTrajectoryExactMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 31) && (trajectoryExactMatchResultsBuilder_ != null)) { + return trajectoryExactMatchResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 27) { - return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_; + if (evaluationResultsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); } } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> - getPointwiseMetricResultFieldBuilder() { - if (pointwiseMetricResultBuilder_ == null) { - if (!(evaluationResultsCase_ == 27)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder> + getTrajectoryExactMatchResultsFieldBuilder() { + if (trajectoryExactMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 31)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); } - pointwiseMetricResultBuilder_ = + trajectoryExactMatchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 27; + evaluationResultsCase_ = 31; onChanged(); - return pointwiseMetricResultBuilder_; + return trajectoryExactMatchResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> - pairwiseMetricResultBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder> + trajectoryInOrderMatchResultsBuilder_; /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * * - * @return Whether the pairwiseMetricResult field is set. + * @return Whether the trajectoryInOrderMatchResults field is set. */ @java.lang.Override - public boolean hasPairwiseMetricResult() { - return evaluationResultsCase_ == 28; + public boolean hasTrajectoryInOrderMatchResults() { + return evaluationResultsCase_ == 32; } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * * - * @return The pairwiseMetricResult. + * @return The trajectoryInOrderMatchResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult getPairwiseMetricResult() { - if (pairwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 28) { - return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getTrajectoryInOrderMatchResults() { + if (trajectoryInOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance(); } else { - if (evaluationResultsCase_ == 28) { - return pairwiseMetricResultBuilder_.getMessage(); + if (evaluationResultsCase_ == 32) { + return trajectoryInOrderMatchResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance(); } } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public Builder setPairwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { - if (pairwiseMetricResultBuilder_ == null) { + public Builder setTrajectoryInOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults value) { + if (trajectoryInOrderMatchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - pairwiseMetricResultBuilder_.setMessage(value); + trajectoryInOrderMatchResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 28; + evaluationResultsCase_ = 32; return this; } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public Builder setPairwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder builderForValue) { - if (pairwiseMetricResultBuilder_ == null) { + public Builder setTrajectoryInOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder builderForValue) { + if (trajectoryInOrderMatchResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - pairwiseMetricResultBuilder_.setMessage(builderForValue.build()); + trajectoryInOrderMatchResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 28; + evaluationResultsCase_ = 32; return this; } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public Builder mergePairwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { - if (pairwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 28 + public Builder mergeTrajectoryInOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults value) { + if (trajectoryInOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 32 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.newBuilder( - (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_) .mergeFrom(value) .buildPartial(); } else { @@ -6970,38 +8976,39 @@ public Builder mergePairwiseMetricResult( } onChanged(); } else { - if (evaluationResultsCase_ == 28) { - pairwiseMetricResultBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 32) { + trajectoryInOrderMatchResultsBuilder_.mergeFrom(value); } else { - pairwiseMetricResultBuilder_.setMessage(value); + trajectoryInOrderMatchResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 28; + evaluationResultsCase_ = 32; return this; } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public Builder clearPairwiseMetricResult() { - if (pairwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 28) { + public Builder clearTrajectoryInOrderMatchResults() { + if (trajectoryInOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 32) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 28) { + if (evaluationResultsCase_ == 32) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - pairwiseMetricResultBuilder_.clear(); + trajectoryInOrderMatchResultsBuilder_.clear(); } return this; } @@ -7009,189 +9016,203 @@ public Builder clearPairwiseMetricResult() { * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder - getPairwiseMetricResultBuilder() { - return getPairwiseMetricResultFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder + getTrajectoryInOrderMatchResultsBuilder() { + return getTrajectoryInOrderMatchResultsFieldBuilder().getBuilder(); } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder - getPairwiseMetricResultOrBuilder() { - if ((evaluationResultsCase_ == 28) && (pairwiseMetricResultBuilder_ != null)) { - return pairwiseMetricResultBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder + getTrajectoryInOrderMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 32) && (trajectoryInOrderMatchResultsBuilder_ != null)) { + return trajectoryInOrderMatchResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 28) { - return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_; + if (evaluationResultsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance(); } } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> - getPairwiseMetricResultFieldBuilder() { - if (pairwiseMetricResultBuilder_ == null) { - if (!(evaluationResultsCase_ == 28)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder> + getTrajectoryInOrderMatchResultsFieldBuilder() { + if (trajectoryInOrderMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 32)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance(); } - pairwiseMetricResultBuilder_ = + trajectoryInOrderMatchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 28; + evaluationResultsCase_ = 32; onChanged(); - return pairwiseMetricResultBuilder_; + return trajectoryInOrderMatchResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder> - toolCallValidResultsBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder> + trajectoryAnyOrderMatchResultsBuilder_; /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * * - * @return Whether the toolCallValidResults field is set. + * @return Whether the trajectoryAnyOrderMatchResults field is set. */ @java.lang.Override - public boolean hasToolCallValidResults() { - return evaluationResultsCase_ == 18; + public boolean hasTrajectoryAnyOrderMatchResults() { + return evaluationResultsCase_ == 33; } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * * - * @return The toolCallValidResults. + * @return The trajectoryAnyOrderMatchResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolCallValidResults getToolCallValidResults() { - if (toolCallValidResultsBuilder_ == null) { - if (evaluationResultsCase_ == 18) { - return (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getTrajectoryAnyOrderMatchResults() { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); } else { - if (evaluationResultsCase_ == 18) { - return toolCallValidResultsBuilder_.getMessage(); + if (evaluationResultsCase_ == 33) { + return trajectoryAnyOrderMatchResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); } } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public Builder setToolCallValidResults( - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults value) { - if (toolCallValidResultsBuilder_ == null) { + public Builder setTrajectoryAnyOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults value) { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - toolCallValidResultsBuilder_.setMessage(value); + trajectoryAnyOrderMatchResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 18; + evaluationResultsCase_ = 33; return this; } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public Builder setToolCallValidResults( - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder builderForValue) { - if (toolCallValidResultsBuilder_ == null) { + public Builder setTrajectoryAnyOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder + builderForValue) { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - toolCallValidResultsBuilder_.setMessage(builderForValue.build()); + trajectoryAnyOrderMatchResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 18; + evaluationResultsCase_ = 33; return this; } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public Builder mergeToolCallValidResults( - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults value) { - if (toolCallValidResultsBuilder_ == null) { - if (evaluationResultsCase_ == 18 + public Builder mergeTrajectoryAnyOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults value) { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 33 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.newBuilder( - (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_) .mergeFrom(value) .buildPartial(); } else { @@ -7199,39 +9220,39 @@ public Builder mergeToolCallValidResults( } onChanged(); } else { - if (evaluationResultsCase_ == 18) { - toolCallValidResultsBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 33) { + trajectoryAnyOrderMatchResultsBuilder_.mergeFrom(value); } else { - toolCallValidResultsBuilder_.setMessage(value); + trajectoryAnyOrderMatchResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 18; + evaluationResultsCase_ = 33; return this; } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public Builder clearToolCallValidResults() { - if (toolCallValidResultsBuilder_ == null) { - if (evaluationResultsCase_ == 18) { + public Builder clearTrajectoryAnyOrderMatchResults() { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 33) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 18) { + if (evaluationResultsCase_ == 33) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - toolCallValidResultsBuilder_.clear(); + trajectoryAnyOrderMatchResultsBuilder_.clear(); } return this; } @@ -7239,187 +9260,200 @@ public Builder clearToolCallValidResults() { * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder - getToolCallValidResultsBuilder() { - return getToolCallValidResultsFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder + getTrajectoryAnyOrderMatchResultsBuilder() { + return getTrajectoryAnyOrderMatchResultsFieldBuilder().getBuilder(); } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder - getToolCallValidResultsOrBuilder() { - if ((evaluationResultsCase_ == 18) && (toolCallValidResultsBuilder_ != null)) { - return toolCallValidResultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder + getTrajectoryAnyOrderMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 33) && (trajectoryAnyOrderMatchResultsBuilder_ != null)) { + return trajectoryAnyOrderMatchResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 18) { - return (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_; + if (evaluationResultsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); } } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder> - getToolCallValidResultsFieldBuilder() { - if (toolCallValidResultsBuilder_ == null) { - if (!(evaluationResultsCase_ == 18)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder> + getTrajectoryAnyOrderMatchResultsFieldBuilder() { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 33)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); } - toolCallValidResultsBuilder_ = + trajectoryAnyOrderMatchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 18; + evaluationResultsCase_ = 33; onChanged(); - return toolCallValidResultsBuilder_; + return trajectoryAnyOrderMatchResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder> - toolNameMatchResultsBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder> + trajectoryPrecisionResultsBuilder_; /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * * - * @return Whether the toolNameMatchResults field is set. + * @return Whether the trajectoryPrecisionResults field is set. */ @java.lang.Override - public boolean hasToolNameMatchResults() { - return evaluationResultsCase_ == 19; + public boolean hasTrajectoryPrecisionResults() { + return evaluationResultsCase_ == 35; } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * * - * @return The toolNameMatchResults. + * @return The trajectoryPrecisionResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults getToolNameMatchResults() { - if (toolNameMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 19) { - return (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + getTrajectoryPrecisionResults() { + if (trajectoryPrecisionResultsBuilder_ == null) { + if (evaluationResultsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); } else { - if (evaluationResultsCase_ == 19) { - return toolNameMatchResultsBuilder_.getMessage(); + if (evaluationResultsCase_ == 35) { + return trajectoryPrecisionResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); } } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public Builder setToolNameMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults value) { - if (toolNameMatchResultsBuilder_ == null) { + public Builder setTrajectoryPrecisionResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults value) { + if (trajectoryPrecisionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - toolNameMatchResultsBuilder_.setMessage(value); + trajectoryPrecisionResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 19; + evaluationResultsCase_ = 35; return this; } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public Builder setToolNameMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder builderForValue) { - if (toolNameMatchResultsBuilder_ == null) { + public Builder setTrajectoryPrecisionResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder builderForValue) { + if (trajectoryPrecisionResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - toolNameMatchResultsBuilder_.setMessage(builderForValue.build()); + trajectoryPrecisionResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 19; + evaluationResultsCase_ = 35; return this; } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public Builder mergeToolNameMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults value) { - if (toolNameMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 19 + public Builder mergeTrajectoryPrecisionResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults value) { + if (trajectoryPrecisionResultsBuilder_ == null) { + if (evaluationResultsCase_ == 35 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.newBuilder( - (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + evaluationResults_) .mergeFrom(value) .buildPartial(); } else { @@ -7427,38 +9461,39 @@ public Builder mergeToolNameMatchResults( } onChanged(); } else { - if (evaluationResultsCase_ == 19) { - toolNameMatchResultsBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 35) { + trajectoryPrecisionResultsBuilder_.mergeFrom(value); } else { - toolNameMatchResultsBuilder_.setMessage(value); + trajectoryPrecisionResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 19; + evaluationResultsCase_ = 35; return this; } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public Builder clearToolNameMatchResults() { - if (toolNameMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 19) { + public Builder clearTrajectoryPrecisionResults() { + if (trajectoryPrecisionResultsBuilder_ == null) { + if (evaluationResultsCase_ == 35) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 19) { + if (evaluationResultsCase_ == 35) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - toolNameMatchResultsBuilder_.clear(); + trajectoryPrecisionResultsBuilder_.clear(); } return this; } @@ -7466,194 +9501,195 @@ public Builder clearToolNameMatchResults() { * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder - getToolNameMatchResultsBuilder() { - return getToolNameMatchResultsFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder + getTrajectoryPrecisionResultsBuilder() { + return getTrajectoryPrecisionResultsFieldBuilder().getBuilder(); } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder - getToolNameMatchResultsOrBuilder() { - if ((evaluationResultsCase_ == 19) && (toolNameMatchResultsBuilder_ != null)) { - return toolNameMatchResultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder + getTrajectoryPrecisionResultsOrBuilder() { + if ((evaluationResultsCase_ == 35) && (trajectoryPrecisionResultsBuilder_ != null)) { + return trajectoryPrecisionResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 19) { - return (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_; + if (evaluationResultsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); } } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder> - getToolNameMatchResultsFieldBuilder() { - if (toolNameMatchResultsBuilder_ == null) { - if (!(evaluationResultsCase_ == 19)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder> + getTrajectoryPrecisionResultsFieldBuilder() { + if (trajectoryPrecisionResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 35)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); } - toolNameMatchResultsBuilder_ = + trajectoryPrecisionResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 19; + evaluationResultsCase_ = 35; onChanged(); - return toolNameMatchResultsBuilder_; + return trajectoryPrecisionResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder> - toolParameterKeyMatchResultsBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder> + trajectoryRecallResultsBuilder_; /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * * - * @return Whether the toolParameterKeyMatchResults field is set. + * @return Whether the trajectoryRecallResults field is set. */ @java.lang.Override - public boolean hasToolParameterKeyMatchResults() { - return evaluationResultsCase_ == 20; + public boolean hasTrajectoryRecallResults() { + return evaluationResultsCase_ == 36; } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * * - * @return The toolParameterKeyMatchResults. + * @return The trajectoryRecallResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults - getToolParameterKeyMatchResults() { - if (toolParameterKeyMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 20) { - return (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) - evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults + getTrajectoryRecallResults() { + if (trajectoryRecallResultsBuilder_ == null) { + if (evaluationResultsCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); } else { - if (evaluationResultsCase_ == 20) { - return toolParameterKeyMatchResultsBuilder_.getMessage(); + if (evaluationResultsCase_ == 36) { + return trajectoryRecallResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); } } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public Builder setToolParameterKeyMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults value) { - if (toolParameterKeyMatchResultsBuilder_ == null) { + public Builder setTrajectoryRecallResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults value) { + if (trajectoryRecallResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - toolParameterKeyMatchResultsBuilder_.setMessage(value); + trajectoryRecallResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 20; + evaluationResultsCase_ = 36; return this; } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public Builder setToolParameterKeyMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder builderForValue) { - if (toolParameterKeyMatchResultsBuilder_ == null) { + public Builder setTrajectoryRecallResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder builderForValue) { + if (trajectoryRecallResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - toolParameterKeyMatchResultsBuilder_.setMessage(builderForValue.build()); + trajectoryRecallResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 20; + evaluationResultsCase_ = 36; return this; } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public Builder mergeToolParameterKeyMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults value) { - if (toolParameterKeyMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 20 + public Builder mergeTrajectoryRecallResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults value) { + if (trajectoryRecallResultsBuilder_ == null) { + if (evaluationResultsCase_ == 36 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + != com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.newBuilder( - (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_) .mergeFrom(value) .buildPartial(); @@ -7662,39 +9698,39 @@ public Builder mergeToolParameterKeyMatchResults( } onChanged(); } else { - if (evaluationResultsCase_ == 20) { - toolParameterKeyMatchResultsBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 36) { + trajectoryRecallResultsBuilder_.mergeFrom(value); } else { - toolParameterKeyMatchResultsBuilder_.setMessage(value); + trajectoryRecallResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 20; + evaluationResultsCase_ = 36; return this; } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public Builder clearToolParameterKeyMatchResults() { - if (toolParameterKeyMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 20) { + public Builder clearTrajectoryRecallResults() { + if (trajectoryRecallResultsBuilder_ == null) { + if (evaluationResultsCase_ == 36) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 20) { + if (evaluationResultsCase_ == 36) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - toolParameterKeyMatchResultsBuilder_.clear(); + trajectoryRecallResultsBuilder_.clear(); } return this; } @@ -7702,198 +9738,198 @@ public Builder clearToolParameterKeyMatchResults() { * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder - getToolParameterKeyMatchResultsBuilder() { - return getToolParameterKeyMatchResultsFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder + getTrajectoryRecallResultsBuilder() { + return getTrajectoryRecallResultsFieldBuilder().getBuilder(); } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder - getToolParameterKeyMatchResultsOrBuilder() { - if ((evaluationResultsCase_ == 20) && (toolParameterKeyMatchResultsBuilder_ != null)) { - return toolParameterKeyMatchResultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder + getTrajectoryRecallResultsOrBuilder() { + if ((evaluationResultsCase_ == 36) && (trajectoryRecallResultsBuilder_ != null)) { + return trajectoryRecallResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 20) { - return (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) - evaluationResults_; + if (evaluationResultsCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); } } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder> - getToolParameterKeyMatchResultsFieldBuilder() { - if (toolParameterKeyMatchResultsBuilder_ == null) { - if (!(evaluationResultsCase_ == 20)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder> + getTrajectoryRecallResultsFieldBuilder() { + if (trajectoryRecallResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 36)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); } - toolParameterKeyMatchResultsBuilder_ = + trajectoryRecallResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) - evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 20; + evaluationResultsCase_ = 36; onChanged(); - return toolParameterKeyMatchResultsBuilder_; + return trajectoryRecallResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder> - toolParameterKvMatchResultsBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder> + trajectorySingleToolUseResultsBuilder_; /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * * - * @return Whether the toolParameterKvMatchResults field is set. + * @return Whether the trajectorySingleToolUseResults field is set. */ @java.lang.Override - public boolean hasToolParameterKvMatchResults() { - return evaluationResultsCase_ == 21; + public boolean hasTrajectorySingleToolUseResults() { + return evaluationResultsCase_ == 37; } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * * - * @return The toolParameterKvMatchResults. + * @return The trajectorySingleToolUseResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults - getToolParameterKvMatchResults() { - if (toolParameterKvMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 21) { - return (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getTrajectorySingleToolUseResults() { + if (trajectorySingleToolUseResultsBuilder_ == null) { + if (evaluationResultsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); } else { - if (evaluationResultsCase_ == 21) { - return toolParameterKvMatchResultsBuilder_.getMessage(); + if (evaluationResultsCase_ == 37) { + return trajectorySingleToolUseResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); } } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public Builder setToolParameterKvMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults value) { - if (toolParameterKvMatchResultsBuilder_ == null) { + public Builder setTrajectorySingleToolUseResults( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults value) { + if (trajectorySingleToolUseResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - toolParameterKvMatchResultsBuilder_.setMessage(value); + trajectorySingleToolUseResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 21; + evaluationResultsCase_ = 37; return this; } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public Builder setToolParameterKvMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder builderForValue) { - if (toolParameterKvMatchResultsBuilder_ == null) { + public Builder setTrajectorySingleToolUseResults( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder + builderForValue) { + if (trajectorySingleToolUseResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - toolParameterKvMatchResultsBuilder_.setMessage(builderForValue.build()); + trajectorySingleToolUseResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 21; + evaluationResultsCase_ = 37; return this; } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public Builder mergeToolParameterKvMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults value) { - if (toolParameterKvMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 21 + public Builder mergeTrajectorySingleToolUseResults( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults value) { + if (trajectorySingleToolUseResultsBuilder_ == null) { + if (evaluationResultsCase_ == 37 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults + != com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.newBuilder( - (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_) .mergeFrom(value) .buildPartial(); @@ -7902,39 +9938,39 @@ public Builder mergeToolParameterKvMatchResults( } onChanged(); } else { - if (evaluationResultsCase_ == 21) { - toolParameterKvMatchResultsBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 37) { + trajectorySingleToolUseResultsBuilder_.mergeFrom(value); } else { - toolParameterKvMatchResultsBuilder_.setMessage(value); + trajectorySingleToolUseResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 21; + evaluationResultsCase_ = 37; return this; } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public Builder clearToolParameterKvMatchResults() { - if (toolParameterKvMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 21) { + public Builder clearTrajectorySingleToolUseResults() { + if (trajectorySingleToolUseResultsBuilder_ == null) { + if (evaluationResultsCase_ == 37) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 21) { + if (evaluationResultsCase_ == 37) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - toolParameterKvMatchResultsBuilder_.clear(); + trajectorySingleToolUseResultsBuilder_.clear(); } return this; } @@ -7942,76 +9978,78 @@ public Builder clearToolParameterKvMatchResults() { * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder - getToolParameterKvMatchResultsBuilder() { - return getToolParameterKvMatchResultsFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder + getTrajectorySingleToolUseResultsBuilder() { + return getTrajectorySingleToolUseResultsFieldBuilder().getBuilder(); } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder - getToolParameterKvMatchResultsOrBuilder() { - if ((evaluationResultsCase_ == 21) && (toolParameterKvMatchResultsBuilder_ != null)) { - return toolParameterKvMatchResultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder + getTrajectorySingleToolUseResultsOrBuilder() { + if ((evaluationResultsCase_ == 37) && (trajectorySingleToolUseResultsBuilder_ != null)) { + return trajectorySingleToolUseResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 21) { - return (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) + if (evaluationResultsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); } } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder> - getToolParameterKvMatchResultsFieldBuilder() { - if (toolParameterKvMatchResultsBuilder_ == null) { - if (!(evaluationResultsCase_ == 21)) { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder> + getTrajectorySingleToolUseResultsFieldBuilder() { + if (trajectorySingleToolUseResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 37)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); } - toolParameterKvMatchResultsBuilder_ = + trajectorySingleToolUseResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 21; + evaluationResultsCase_ = 37; onChanged(); - return toolParameterKvMatchResultsBuilder_; + return trajectorySingleToolUseResultsBuilder_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java index 39d9d273f509..b5d80b490bbe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java @@ -949,6 +949,258 @@ public interface EvaluateInstancesResponseOrBuilder com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder getToolParameterKvMatchResultsOrBuilder(); + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + * + * @return Whether the trajectoryExactMatchResults field is set. + */ + boolean hasTrajectoryExactMatchResults(); + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + * + * @return The trajectoryExactMatchResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults getTrajectoryExactMatchResults(); + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder + getTrajectoryExactMatchResultsOrBuilder(); + + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + * + * @return Whether the trajectoryInOrderMatchResults field is set. + */ + boolean hasTrajectoryInOrderMatchResults(); + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + * + * @return The trajectoryInOrderMatchResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getTrajectoryInOrderMatchResults(); + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder + getTrajectoryInOrderMatchResultsOrBuilder(); + + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + * + * @return Whether the trajectoryAnyOrderMatchResults field is set. + */ + boolean hasTrajectoryAnyOrderMatchResults(); + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + * + * @return The trajectoryAnyOrderMatchResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getTrajectoryAnyOrderMatchResults(); + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder + getTrajectoryAnyOrderMatchResultsOrBuilder(); + + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + * + * @return Whether the trajectoryPrecisionResults field is set. + */ + boolean hasTrajectoryPrecisionResults(); + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + * + * @return The trajectoryPrecisionResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults getTrajectoryPrecisionResults(); + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder + getTrajectoryPrecisionResultsOrBuilder(); + + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + * + * @return Whether the trajectoryRecallResults field is set. + */ + boolean hasTrajectoryRecallResults(); + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + * + * @return The trajectoryRecallResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults getTrajectoryRecallResults(); + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder + getTrajectoryRecallResultsOrBuilder(); + + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + * + * @return Whether the trajectorySingleToolUseResults field is set. + */ + boolean hasTrajectorySingleToolUseResults(); + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + * + * @return The trajectorySingleToolUseResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getTrajectorySingleToolUseResults(); + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder + getTrajectorySingleToolUseResultsOrBuilder(); + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.EvaluationResultsCase getEvaluationResultsCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java index 65ac77825b9d..07937db7d1fd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java @@ -432,6 +432,134 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ToolParameterKVMatchMetricValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ToolParameterKVMatchMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Trajectory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Trajectory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ToolCall_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ToolCall_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -446,7 +574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm.v1beta1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\"\313\021\n\030EvaluateInstancesRequest\022M\n\021e" + + ".proto\"\252\026\n\030EvaluateInstancesRequest\022M\n\021e" + "xact_match_input\030\002 \001(\01320.google.cloud.ai" + "platform.v1beta1.ExactMatchInputH\000\022@\n\nbl" + "eu_input\030\003 \001(\0132*.google.cloud.aiplatform" @@ -500,400 +628,540 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "form.v1beta1.ToolParameterKeyMatchInputH" + "\000\022c\n\035tool_parameter_kv_match_input\030\026 \001(\013" + "2:.google.cloud.aiplatform.v1beta1.ToolP" - + "arameterKVMatchInputH\000\022;\n\010location\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ionB\017\n\rmetric_inputs\"\320\021\n\031EvaluateInstanc" - + "esResponse\022Q\n\023exact_match_results\030\001 \001(\0132" - + "2.google.cloud.aiplatform.v1beta1.ExactM" - + "atchResultsH\000\022D\n\014bleu_results\030\002 \001(\0132,.go" - + "ogle.cloud.aiplatform.v1beta1.BleuResult" - + "sH\000\022F\n\rrouge_results\030\003 \001(\0132-.google.clou" - + "d.aiplatform.v1beta1.RougeResultsH\000\022H\n\016f" - + "luency_result\030\004 \001(\0132..google.cloud.aipla" - + "tform.v1beta1.FluencyResultH\000\022L\n\020coheren" - + "ce_result\030\005 \001(\01320.google.cloud.aiplatfor" - + "m.v1beta1.CoherenceResultH\000\022F\n\rsafety_re" - + "sult\030\007 \001(\0132-.google.cloud.aiplatform.v1b" - + "eta1.SafetyResultH\000\022R\n\023groundedness_resu" - + "lt\030\010 \001(\01323.google.cloud.aiplatform.v1bet" - + "a1.GroundednessResultH\000\022P\n\022fulfillment_r" - + "esult\030\013 \001(\01322.google.cloud.aiplatform.v1" - + "beta1.FulfillmentResultH\000\022c\n\034summarizati" - + "on_quality_result\030\006 \001(\0132;.google.cloud.a" - + "iplatform.v1beta1.SummarizationQualityRe" - + "sultH\000\022t\n%pairwise_summarization_quality" - + "_result\030\026 \001(\0132C.google.cloud.aiplatform." - + "v1beta1.PairwiseSummarizationQualityResu" - + "ltH\000\022k\n summarization_helpfulness_result" - + "\030\r \001(\0132?.google.cloud.aiplatform.v1beta1" - + ".SummarizationHelpfulnessResultH\000\022g\n\036sum" - + "marization_verbosity_result\030\016 \001(\0132=.goog" - + "le.cloud.aiplatform.v1beta1.Summarizatio" - + "nVerbosityResultH\000\022l\n!question_answering" - + "_quality_result\030\t \001(\0132?.google.cloud.aip" - + "latform.v1beta1.QuestionAnsweringQuality" - + "ResultH\000\022}\n*pairwise_question_answering_" - + "quality_result\030\027 \001(\0132G.google.cloud.aipl" - + "atform.v1beta1.PairwiseQuestionAnswering" - + "QualityResultH\000\022p\n#question_answering_re" - + "levance_result\030\017 \001(\0132A.google.cloud.aipl" - + "atform.v1beta1.QuestionAnsweringRelevanc" - + "eResultH\000\022t\n%question_answering_helpfuln" - + "ess_result\030\020 \001(\0132C.google.cloud.aiplatfo" - + "rm.v1beta1.QuestionAnsweringHelpfulnessR" - + "esultH\000\022t\n%question_answering_correctnes" - + "s_result\030\021 \001(\0132C.google.cloud.aiplatform" - + ".v1beta1.QuestionAnsweringCorrectnessRes" - + "ultH\000\022Y\n\027pointwise_metric_result\030\033 \001(\01326" - + ".google.cloud.aiplatform.v1beta1.Pointwi" - + "seMetricResultH\000\022W\n\026pairwise_metric_resu" - + "lt\030\034 \001(\01325.google.cloud.aiplatform.v1bet" - + "a1.PairwiseMetricResultH\000\022X\n\027tool_call_v" - + "alid_results\030\022 \001(\01325.google.cloud.aiplat" - + "form.v1beta1.ToolCallValidResultsH\000\022X\n\027t" - + "ool_name_match_results\030\023 \001(\01325.google.cl" - + "oud.aiplatform.v1beta1.ToolNameMatchResu" - + "ltsH\000\022i\n tool_parameter_key_match_result" - + "s\030\024 \001(\0132=.google.cloud.aiplatform.v1beta" - + "1.ToolParameterKeyMatchResultsH\000\022g\n\037tool" - + "_parameter_kv_match_results\030\025 \001(\0132<.goog" - + "le.cloud.aiplatform.v1beta1.ToolParamete" - + "rKVMatchResultsH\000B\024\n\022evaluation_results\"" - + "\251\001\n\017ExactMatchInput\022I\n\013metric_spec\030\001 \001(\013" - + "2/.google.cloud.aiplatform.v1beta1.Exact" - + "MatchSpecB\003\340A\002\022K\n\tinstances\030\002 \003(\01323.goog" - + "le.cloud.aiplatform.v1beta1.ExactMatchIn" - + "stanceB\003\340A\002\"l\n\022ExactMatchInstance\022\034\n\npre" - + "diction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001" - + "(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_referenc" - + "e\"\020\n\016ExactMatchSpec\"s\n\021ExactMatchResults" - + "\022^\n\031exact_match_metric_values\030\001 \003(\01326.go" - + "ogle.cloud.aiplatform.v1beta1.ExactMatch" - + "MetricValueB\003\340A\003\":\n\025ExactMatchMetricValu" - + "e\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\227\001\n" - + "\tBleuInput\022C\n\013metric_spec\030\001 \001(\0132).google" - + ".cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022" - + "E\n\tinstances\030\002 \003(\0132-.google.cloud.aiplat" - + "form.v1beta1.BleuInstanceB\003\340A\002\"f\n\014BleuIn" - + "stance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\t" - + "reference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_prediction" - + "B\014\n\n_reference\",\n\010BleuSpec\022 \n\023use_effect" - + "ive_order\030\001 \001(\010B\003\340A\001\"`\n\013BleuResults\022Q\n\022b" - + "leu_metric_values\030\001 \003(\01320.google.cloud.a" - + "iplatform.v1beta1.BleuMetricValueB\003\340A\003\"4" - + "\n\017BleuMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210" - + "\001\001B\010\n\006_score\"\232\001\n\nRougeInput\022D\n\013metric_sp" - + "ec\030\001 \001(\0132*.google.cloud.aiplatform.v1bet" - + "a1.RougeSpecB\003\340A\002\022F\n\tinstances\030\002 \003(\0132..g" - + "oogle.cloud.aiplatform.v1beta1.RougeInst" - + "anceB\003\340A\002\"g\n\rRougeInstance\022\034\n\nprediction" - + "\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002" - + "H\001\210\001\001B\r\n\013_predictionB\014\n\n_reference\"\\\n\tRo" - + "ugeSpec\022\027\n\nrouge_type\030\001 \001(\tB\003\340A\001\022\030\n\013use_" - + "stemmer\030\002 \001(\010B\003\340A\001\022\034\n\017split_summaries\030\003 " - + "\001(\010B\003\340A\001\"c\n\014RougeResults\022S\n\023rouge_metric" - + "_values\030\001 \003(\01321.google.cloud.aiplatform." - + "v1beta1.RougeMetricValueB\003\340A\003\"5\n\020RougeMe" - + "tricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_s" - + "core\"\245\001\n\016CoherenceInput\022H\n\013metric_spec\030\001" - + " \001(\0132..google.cloud.aiplatform.v1beta1.C" - + "oherenceSpecB\003\340A\002\022I\n\010instance\030\002 \001(\01322.go" - + "ogle.cloud.aiplatform.v1beta1.CoherenceI" - + "nstanceB\003\340A\002\"@\n\021CoherenceInstance\022\034\n\npre" - + "diction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"%" - + "\n\rCoherenceSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"{\n" - + "\017CoherenceResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001" - + "\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidenc" - + "e\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confiden" - + "ce\"\237\001\n\014FluencyInput\022F\n\013metric_spec\030\001 \001(\013" - + "2,.google.cloud.aiplatform.v1beta1.Fluen" - + "cySpecB\003\340A\002\022G\n\010instance\030\002 \001(\01320.google.c" - + "loud.aiplatform.v1beta1.FluencyInstanceB" - + "\003\340A\002\">\n\017FluencyInstance\022\034\n\nprediction\030\001 " - + "\001(\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"#\n\013FluencyS" - + "pec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"y\n\rFluencyResu" - + "lt\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanati" - + "on\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001" - + "\210\001\001B\010\n\006_scoreB\r\n\013_confidence\"\234\001\n\013SafetyI" - + "nput\022E\n\013metric_spec\030\001 \001(\0132+.google.cloud" - + ".aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n\010i" - + "nstance\030\002 \001(\0132/.google.cloud.aiplatform." - + "v1beta1.SafetyInstanceB\003\340A\002\"=\n\016SafetyIns" - + "tance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_" - + "prediction\"\"\n\nSafetySpec\022\024\n\007version\030\001 \001(" - + "\005B\003\340A\001\"x\n\014SafetyResult\022\027\n\005score\030\001 \001(\002B\003\340" - + "A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\ncon" - + "fidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_co" - + "nfidence\"\256\001\n\021GroundednessInput\022K\n\013metric" - + "_spec\030\001 \001(\01321.google.cloud.aiplatform.v1" - + "beta1.GroundednessSpecB\003\340A\002\022L\n\010instance\030" - + "\002 \001(\01325.google.cloud.aiplatform.v1beta1." - + "GroundednessInstanceB\003\340A\002\"j\n\024Groundednes" - + "sInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022" - + "\031\n\007context\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictio" - + "nB\n\n\010_context\"(\n\020GroundednessSpec\022\024\n\007ver" - + "sion\030\001 \001(\005B\003\340A\001\"~\n\022GroundednessResult\022\027\n" - + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 " - + "\001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010" - + "\n\006_scoreB\r\n\013_confidence\"\253\001\n\020FulfillmentI" - + "nput\022J\n\013metric_spec\030\001 \001(\01320.google.cloud" - + ".aiplatform.v1beta1.FulfillmentSpecB\003\340A\002" - + "\022K\n\010instance\030\002 \001(\01324.google.cloud.aiplat" - + "form.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" - + "\023FulfillmentInstance\022\034\n\nprediction\030\001 \001(\t" - + "B\003\340A\002H\000\210\001\001\022\035\n\013instruction\030\002 \001(\tB\003\340A\002H\001\210\001" - + "\001B\r\n\013_predictionB\016\n\014_instruction\"\'\n\017Fulf" - + "illmentSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"}\n\021Ful" - + "fillmentResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022" + + "arameterKVMatchInputH\000\022b\n\034trajectory_exa" + + "ct_match_input\030! \001(\0132:.google.cloud.aipl" + + "atform.v1beta1.TrajectoryExactMatchInput" + + "H\000\022g\n\037trajectory_in_order_match_input\030\" " + + "\001(\0132<.google.cloud.aiplatform.v1beta1.Tr" + + "ajectoryInOrderMatchInputH\000\022i\n trajector" + + "y_any_order_match_input\030# \001(\0132=.google.c" + + "loud.aiplatform.v1beta1.TrajectoryAnyOrd" + + "erMatchInputH\000\022_\n\032trajectory_precision_i" + + "nput\030% \001(\01329.google.cloud.aiplatform.v1b" + + "eta1.TrajectoryPrecisionInputH\000\022Y\n\027traje" + + "ctory_recall_input\030& \001(\01326.google.cloud." + + "aiplatform.v1beta1.TrajectoryRecallInput" + + "H\000\022i\n trajectory_single_tool_use_input\030\'" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.T" + + "rajectorySingleToolUseInputH\000\022;\n\010locatio" + + "n\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co" + + "m/LocationB\017\n\rmetric_inputs\"\307\026\n\031Evaluate" + + "InstancesResponse\022Q\n\023exact_match_results" + + "\030\001 \001(\01322.google.cloud.aiplatform.v1beta1" + + ".ExactMatchResultsH\000\022D\n\014bleu_results\030\002 \001" + + "(\0132,.google.cloud.aiplatform.v1beta1.Ble" + + "uResultsH\000\022F\n\rrouge_results\030\003 \001(\0132-.goog" + + "le.cloud.aiplatform.v1beta1.RougeResults" + + "H\000\022H\n\016fluency_result\030\004 \001(\0132..google.clou" + + "d.aiplatform.v1beta1.FluencyResultH\000\022L\n\020" + + "coherence_result\030\005 \001(\01320.google.cloud.ai" + + "platform.v1beta1.CoherenceResultH\000\022F\n\rsa" + + "fety_result\030\007 \001(\0132-.google.cloud.aiplatf" + + "orm.v1beta1.SafetyResultH\000\022R\n\023groundedne" + + "ss_result\030\010 \001(\01323.google.cloud.aiplatfor" + + "m.v1beta1.GroundednessResultH\000\022P\n\022fulfil" + + "lment_result\030\013 \001(\01322.google.cloud.aiplat" + + "form.v1beta1.FulfillmentResultH\000\022c\n\034summ" + + "arization_quality_result\030\006 \001(\0132;.google." + + "cloud.aiplatform.v1beta1.SummarizationQu" + + "alityResultH\000\022t\n%pairwise_summarization_" + + "quality_result\030\026 \001(\0132C.google.cloud.aipl" + + "atform.v1beta1.PairwiseSummarizationQual" + + "ityResultH\000\022k\n summarization_helpfulness" + + "_result\030\r \001(\0132?.google.cloud.aiplatform." + + "v1beta1.SummarizationHelpfulnessResultH\000" + + "\022g\n\036summarization_verbosity_result\030\016 \001(\013" + + "2=.google.cloud.aiplatform.v1beta1.Summa" + + "rizationVerbosityResultH\000\022l\n!question_an" + + "swering_quality_result\030\t \001(\0132?.google.cl" + + "oud.aiplatform.v1beta1.QuestionAnswering" + + "QualityResultH\000\022}\n*pairwise_question_ans" + + "wering_quality_result\030\027 \001(\0132G.google.clo" + + "ud.aiplatform.v1beta1.PairwiseQuestionAn" + + "sweringQualityResultH\000\022p\n#question_answe" + + "ring_relevance_result\030\017 \001(\0132A.google.clo" + + "ud.aiplatform.v1beta1.QuestionAnsweringR" + + "elevanceResultH\000\022t\n%question_answering_h" + + "elpfulness_result\030\020 \001(\0132C.google.cloud.a" + + "iplatform.v1beta1.QuestionAnsweringHelpf" + + "ulnessResultH\000\022t\n%question_answering_cor" + + "rectness_result\030\021 \001(\0132C.google.cloud.aip" + + "latform.v1beta1.QuestionAnsweringCorrect" + + "nessResultH\000\022Y\n\027pointwise_metric_result\030" + + "\033 \001(\01326.google.cloud.aiplatform.v1beta1." + + "PointwiseMetricResultH\000\022W\n\026pairwise_metr" + + "ic_result\030\034 \001(\01325.google.cloud.aiplatfor" + + "m.v1beta1.PairwiseMetricResultH\000\022X\n\027tool" + + "_call_valid_results\030\022 \001(\01325.google.cloud" + + ".aiplatform.v1beta1.ToolCallValidResults" + + "H\000\022X\n\027tool_name_match_results\030\023 \001(\01325.go" + + "ogle.cloud.aiplatform.v1beta1.ToolNameMa" + + "tchResultsH\000\022i\n tool_parameter_key_match" + + "_results\030\024 \001(\0132=.google.cloud.aiplatform" + + ".v1beta1.ToolParameterKeyMatchResultsH\000\022" + + "g\n\037tool_parameter_kv_match_results\030\025 \001(\013" + + "2<.google.cloud.aiplatform.v1beta1.ToolP" + + "arameterKVMatchResultsH\000\022f\n\036trajectory_e" + + "xact_match_results\030\037 \001(\0132<.google.cloud." + + "aiplatform.v1beta1.TrajectoryExactMatchR" + + "esultsH\000\022k\n!trajectory_in_order_match_re" + + "sults\030 \001(\0132>.google.cloud.aiplatform.v1" + + "beta1.TrajectoryInOrderMatchResultsH\000\022m\n" + + "\"trajectory_any_order_match_results\030! \001(" + + "\0132?.google.cloud.aiplatform.v1beta1.Traj" + + "ectoryAnyOrderMatchResultsH\000\022c\n\034trajecto" + + "ry_precision_results\030# \001(\0132;.google.clou" + + "d.aiplatform.v1beta1.TrajectoryPrecision" + + "ResultsH\000\022]\n\031trajectory_recall_results\030$" + + " \001(\01328.google.cloud.aiplatform.v1beta1.T" + + "rajectoryRecallResultsH\000\022m\n\"trajectory_s" + + "ingle_tool_use_results\030% \001(\0132?.google.cl" + + "oud.aiplatform.v1beta1.TrajectorySingleT" + + "oolUseResultsH\000B\024\n\022evaluation_results\"\251\001" + + "\n\017ExactMatchInput\022I\n\013metric_spec\030\001 \001(\0132/" + + ".google.cloud.aiplatform.v1beta1.ExactMa" + + "tchSpecB\003\340A\002\022K\n\tinstances\030\002 \003(\01323.google" + + ".cloud.aiplatform.v1beta1.ExactMatchInst" + + "anceB\003\340A\002\"l\n\022ExactMatchInstance\022\034\n\npredi" + + "ction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\t" + + "B\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_reference\"" + + "\020\n\016ExactMatchSpec\"s\n\021ExactMatchResults\022^" + + "\n\031exact_match_metric_values\030\001 \003(\01326.goog" + + "le.cloud.aiplatform.v1beta1.ExactMatchMe" + + "tricValueB\003\340A\003\":\n\025ExactMatchMetricValue\022" + + "\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\227\001\n\tB" + + "leuInput\022C\n\013metric_spec\030\001 \001(\0132).google.c" + + "loud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" + + "\tinstances\030\002 \003(\0132-.google.cloud.aiplatfo" + + "rm.v1beta1.BleuInstanceB\003\340A\002\"f\n\014BleuInst" + + "ance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\tre" + + "ference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014" + + "\n\n_reference\",\n\010BleuSpec\022 \n\023use_effectiv" + + "e_order\030\001 \001(\010B\003\340A\001\"`\n\013BleuResults\022Q\n\022ble" + + "u_metric_values\030\001 \003(\01320.google.cloud.aip" + + "latform.v1beta1.BleuMetricValueB\003\340A\003\"4\n\017" + + "BleuMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001" + + "B\010\n\006_score\"\232\001\n\nRougeInput\022D\n\013metric_spec" + + "\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1" + + ".RougeSpecB\003\340A\002\022F\n\tinstances\030\002 \003(\0132..goo" + + "gle.cloud.aiplatform.v1beta1.RougeInstan" + + "ceB\003\340A\002\"g\n\rRougeInstance\022\034\n\nprediction\030\001" + + " \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001" + + "\210\001\001B\r\n\013_predictionB\014\n\n_reference\"\\\n\tRoug" + + "eSpec\022\027\n\nrouge_type\030\001 \001(\tB\003\340A\001\022\030\n\013use_st" + + "emmer\030\002 \001(\010B\003\340A\001\022\034\n\017split_summaries\030\003 \001(" + + "\010B\003\340A\001\"c\n\014RougeResults\022S\n\023rouge_metric_v" + + "alues\030\001 \003(\01321.google.cloud.aiplatform.v1" + + "beta1.RougeMetricValueB\003\340A\003\"5\n\020RougeMetr" + + "icValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_sco" + + "re\"\245\001\n\016CoherenceInput\022H\n\013metric_spec\030\001 \001" + + "(\0132..google.cloud.aiplatform.v1beta1.Coh" + + "erenceSpecB\003\340A\002\022I\n\010instance\030\002 \001(\01322.goog" + + "le.cloud.aiplatform.v1beta1.CoherenceIns" + + "tanceB\003\340A\002\"@\n\021CoherenceInstance\022\034\n\npredi" + + "ction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"%\n\r" + + "CoherenceSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"{\n\017C" + + "oherenceResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022" + "\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030" + "\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidence" - + "\"\306\001\n\031SummarizationQualityInput\022S\n\013metric" - + "_spec\030\001 \001(\01329.google.cloud.aiplatform.v1" - + "beta1.SummarizationQualitySpecB\003\340A\002\022T\n\010i" - + "nstance\030\002 \001(\0132=.google.cloud.aiplatform." - + "v1beta1.SummarizationQualityInstanceB\003\340A" - + "\002\"\314\001\n\034SummarizationQualityInstance\022\034\n\npr" - + "ediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 " - + "\001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030\003 \001(\tB\003\340A\002H\002\210\001\001" - + "\022\035\n\013instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_pred" - + "ictionB\014\n\n_referenceB\n\n\010_contextB\016\n\014_ins" - + "truction\"L\n\030SummarizationQualitySpec\022\032\n\r" - + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 \001(" - + "\005B\003\340A\001\"\206\001\n\032SummarizationQualityResult\022\027\n" - + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 " - + "\001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010" - + "\n\006_scoreB\r\n\013_confidence\"\336\001\n!PairwiseSumm" - + "arizationQualityInput\022[\n\013metric_spec\030\001 \001" - + "(\0132A.google.cloud.aiplatform.v1beta1.Pai" - + "rwiseSummarizationQualitySpecB\003\340A\002\022\\\n\010in" - + "stance\030\002 \001(\0132E.google.cloud.aiplatform.v" - + "1beta1.PairwiseSummarizationQualityInsta" - + "nceB\003\340A\002\"\223\002\n$PairwiseSummarizationQualit" - + "yInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022" - + "%\n\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033" - + "\n\treference\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\031\n\007context\030\004" - + " \001(\tB\003\340A\002H\003\210\001\001\022\035\n\013instruction\030\005 \001(\tB\003\340A\002" - + "H\004\210\001\001B\r\n\013_predictionB\026\n\024_baseline_predic" + + "\"\237\001\n\014FluencyInput\022F\n\013metric_spec\030\001 \001(\0132," + + ".google.cloud.aiplatform.v1beta1.Fluency" + + "SpecB\003\340A\002\022G\n\010instance\030\002 \001(\01320.google.clo" + + "ud.aiplatform.v1beta1.FluencyInstanceB\003\340" + + "A\002\">\n\017FluencyInstance\022\034\n\nprediction\030\001 \001(" + + "\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"#\n\013FluencySpe" + + "c\022\024\n\007version\030\001 \001(\005B\003\340A\001\"y\n\rFluencyResult" + + "\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation" + + "\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001" + + "\001B\010\n\006_scoreB\r\n\013_confidence\"\234\001\n\013SafetyInp" + + "ut\022E\n\013metric_spec\030\001 \001(\0132+.google.cloud.a" + + "iplatform.v1beta1.SafetySpecB\003\340A\002\022F\n\010ins" + + "tance\030\002 \001(\0132/.google.cloud.aiplatform.v1" + + "beta1.SafetyInstanceB\003\340A\002\"=\n\016SafetyInsta" + + "nce\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_pr" + + "ediction\"\"\n\nSafetySpec\022\024\n\007version\030\001 \001(\005B" + + "\003\340A\001\"x\n\014SafetyResult\022\027\n\005score\030\001 \001(\002B\003\340A\003" + + "H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfi" + + "dence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_conf" + + "idence\"\256\001\n\021GroundednessInput\022K\n\013metric_s" + + "pec\030\001 \001(\01321.google.cloud.aiplatform.v1be" + + "ta1.GroundednessSpecB\003\340A\002\022L\n\010instance\030\002 " + + "\001(\01325.google.cloud.aiplatform.v1beta1.Gr" + + "oundednessInstanceB\003\340A\002\"j\n\024GroundednessI" + + "nstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\031\n" + + "\007context\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB" + + "\n\n\010_context\"(\n\020GroundednessSpec\022\024\n\007versi" + + "on\030\001 \001(\005B\003\340A\001\"~\n\022GroundednessResult\022\027\n\005s" + + "core\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(" + + "\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006" + + "_scoreB\r\n\013_confidence\"\253\001\n\020FulfillmentInp" + + "ut\022J\n\013metric_spec\030\001 \001(\01320.google.cloud.a" + + "iplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K" + + "\n\010instance\030\002 \001(\01324.google.cloud.aiplatfo" + + "rm.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n\023F" + + "ulfillmentInstance\022\034\n\nprediction\030\001 \001(\tB\003" + + "\340A\002H\000\210\001\001\022\035\n\013instruction\030\002 \001(\tB\003\340A\002H\001\210\001\001B" + + "\r\n\013_predictionB\016\n\014_instruction\"\'\n\017Fulfil" + + "lmentSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"}\n\021Fulfi" + + "llmentResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" + + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 " + + "\001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidence\"\306" + + "\001\n\031SummarizationQualityInput\022S\n\013metric_s" + + "pec\030\001 \001(\01329.google.cloud.aiplatform.v1be" + + "ta1.SummarizationQualitySpecB\003\340A\002\022T\n\010ins" + + "tance\030\002 \001(\0132=.google.cloud.aiplatform.v1" + + "beta1.SummarizationQualityInstanceB\003\340A\002\"" + + "\314\001\n\034SummarizationQualityInstance\022\034\n\npred" + + "iction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(" + + "\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035" + + "\n\013instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_predic" + "tionB\014\n\n_referenceB\n\n\010_contextB\016\n\014_instr" - + "uction\"T\n PairwiseSummarizationQualitySp" - + "ec\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n\007versio" - + "n\030\002 \001(\005B\003\340A\001\"\272\001\n\"PairwiseSummarizationQu" - + "alityResult\022M\n\017pairwise_choice\030\001 \001(\0162/.g" - + "oogle.cloud.aiplatform.v1beta1.PairwiseC" - + "hoiceB\003\340A\003\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" - + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n\013_confidenc" - + "e\"\322\001\n\035SummarizationHelpfulnessInput\022W\n\013m" + + "uction\"L\n\030SummarizationQualitySpec\022\032\n\rus" + + "e_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 \001(\005B" + + "\003\340A\001\"\206\001\n\032SummarizationQualityResult\022\027\n\005s" + + "core\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(" + + "\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006" + + "_scoreB\r\n\013_confidence\"\336\001\n!PairwiseSummar" + + "izationQualityInput\022[\n\013metric_spec\030\001 \001(\013" + + "2A.google.cloud.aiplatform.v1beta1.Pairw" + + "iseSummarizationQualitySpecB\003\340A\002\022\\\n\010inst" + + "ance\030\002 \001(\0132E.google.cloud.aiplatform.v1b" + + "eta1.PairwiseSummarizationQualityInstanc" + + "eB\003\340A\002\"\223\002\n$PairwiseSummarizationQualityI" + + "nstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n" + + "\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n\t" + + "reference\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\031\n\007context\030\004 \001" + + "(\tB\003\340A\002H\003\210\001\001\022\035\n\013instruction\030\005 \001(\tB\003\340A\002H\004" + + "\210\001\001B\r\n\013_predictionB\026\n\024_baseline_predicti" + + "onB\014\n\n_referenceB\n\n\010_contextB\016\n\014_instruc" + + "tion\"T\n PairwiseSummarizationQualitySpec" + + "\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030" + + "\002 \001(\005B\003\340A\001\"\272\001\n\"PairwiseSummarizationQual" + + "ityResult\022M\n\017pairwise_choice\030\001 \001(\0162/.goo" + + "gle.cloud.aiplatform.v1beta1.PairwiseCho" + + "iceB\003\340A\003\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nco" + + "nfidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n\013_confidence\"" + + "\322\001\n\035SummarizationHelpfulnessInput\022W\n\013met" + + "ric_spec\030\001 \001(\0132=.google.cloud.aiplatform" + + ".v1beta1.SummarizationHelpfulnessSpecB\003\340" + + "A\002\022X\n\010instance\030\002 \001(\0132A.google.cloud.aipl" + + "atform.v1beta1.SummarizationHelpfulnessI" + + "nstanceB\003\340A\002\"\320\001\n SummarizationHelpfulnes" + + "sInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022" + + "\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030" + + "\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003\340A" + + "\001H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_" + + "contextB\016\n\014_instruction\"P\n\034Summarization" + + "HelpfulnessSpec\022\032\n\ruse_reference\030\001 \001(\010B\003" + + "\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036Summarizat" + + "ionHelpfulnessResult\022\027\n\005score\030\001 \001(\002B\003\340A\003" + + "H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfi" + + "dence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_conf" + + "idence\"\314\001\n\033SummarizationVerbosityInput\022U" + + "\n\013metric_spec\030\001 \001(\0132;.google.cloud.aipla" + + "tform.v1beta1.SummarizationVerbositySpec" + + "B\003\340A\002\022V\n\010instance\030\002 \001(\0132?.google.cloud.a" + + "iplatform.v1beta1.SummarizationVerbosity" + + "InstanceB\003\340A\002\"\316\001\n\036SummarizationVerbosity" + + "Instance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033" + + "\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030\003" + + " \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003\340A\001" + + "H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_c" + + "ontextB\016\n\014_instruction\"N\n\032SummarizationV" + + "erbositySpec\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001" + + "\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\210\001\n\034Summarization" + + "VerbosityResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001" + + "\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence" + + "\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidenc" + + "e\"\322\001\n\035QuestionAnsweringQualityInput\022W\n\013m" + "etric_spec\030\001 \001(\0132=.google.cloud.aiplatfo" - + "rm.v1beta1.SummarizationHelpfulnessSpecB" + + "rm.v1beta1.QuestionAnsweringQualitySpecB" + "\003\340A\002\022X\n\010instance\030\002 \001(\0132A.google.cloud.ai" - + "platform.v1beta1.SummarizationHelpfulnes" - + "sInstanceB\003\340A\002\"\320\001\n SummarizationHelpfuln" - + "essInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001" + + "platform.v1beta1.QuestionAnsweringQualit" + + "yInstanceB\003\340A\002\"\320\001\n QuestionAnsweringQual" + + "ityInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001" + "\001\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007contex" + "t\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003" - + "\340A\001H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n" - + "\010_contextB\016\n\014_instruction\"P\n\034Summarizati" - + "onHelpfulnessSpec\022\032\n\ruse_reference\030\001 \001(\010" - + "B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036Summariz" - + "ationHelpfulnessResult\022\027\n\005score\030\001 \001(\002B\003\340" + + "\340A\002H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n" + + "\010_contextB\016\n\014_instruction\"P\n\034QuestionAns" + + "weringQualitySpec\022\032\n\ruse_reference\030\001 \001(\010" + + "B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036Question" + + "AnsweringQualityResult\022\027\n\005score\030\001 \001(\002B\003\340" + "A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\ncon" + "fidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_co" - + "nfidence\"\314\001\n\033SummarizationVerbosityInput" - + "\022U\n\013metric_spec\030\001 \001(\0132;.google.cloud.aip" - + "latform.v1beta1.SummarizationVerbositySp" - + "ecB\003\340A\002\022V\n\010instance\030\002 \001(\0132?.google.cloud" - + ".aiplatform.v1beta1.SummarizationVerbosi" - + "tyInstanceB\003\340A\002\"\316\001\n\036SummarizationVerbosi" + + "nfidence\"\352\001\n%PairwiseQuestionAnsweringQu" + + "alityInput\022_\n\013metric_spec\030\001 \001(\0132E.google" + + ".cloud.aiplatform.v1beta1.PairwiseQuesti" + + "onAnsweringQualitySpecB\003\340A\002\022`\n\010instance\030" + + "\002 \001(\0132I.google.cloud.aiplatform.v1beta1." + + "PairwiseQuestionAnsweringQualityInstance" + + "B\003\340A\002\"\227\002\n(PairwiseQuestionAnsweringQuali" + "tyInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001" - + "\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context" - + "\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003\340" - + "A\001H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010" - + "_contextB\016\n\014_instruction\"N\n\032Summarizatio" - + "nVerbositySpec\022\032\n\ruse_reference\030\001 \001(\010B\003\340" - + "A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\210\001\n\034Summarizati" - + "onVerbosityResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210" - + "\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfiden" - + "ce\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confide" - + "nce\"\322\001\n\035QuestionAnsweringQualityInput\022W\n" - + "\013metric_spec\030\001 \001(\0132=.google.cloud.aiplat" - + "form.v1beta1.QuestionAnsweringQualitySpe" - + "cB\003\340A\002\022X\n\010instance\030\002 \001(\0132A.google.cloud." - + "aiplatform.v1beta1.QuestionAnsweringQual" - + "ityInstanceB\003\340A\002\"\320\001\n QuestionAnsweringQu" - + "alityInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000" - + "\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007cont" - + "ext\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\t" - + "B\003\340A\002H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB" - + "\n\n\010_contextB\016\n\014_instruction\"P\n\034QuestionA" - + "nsweringQualitySpec\022\032\n\ruse_reference\030\001 \001" - + "(\010B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036Questi" - + "onAnsweringQualityResult\022\027\n\005score\030\001 \001(\002B" - + "\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nc" - + "onfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_" - + "confidence\"\352\001\n%PairwiseQuestionAnswering" - + "QualityInput\022_\n\013metric_spec\030\001 \001(\0132E.goog" - + "le.cloud.aiplatform.v1beta1.PairwiseQues" - + "tionAnsweringQualitySpecB\003\340A\002\022`\n\010instanc" - + "e\030\002 \001(\0132I.google.cloud.aiplatform.v1beta" - + "1.PairwiseQuestionAnsweringQualityInstan" - + "ceB\003\340A\002\"\227\002\n(PairwiseQuestionAnsweringQua" - + "lityInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210" - + "\001\001\022%\n\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001" - + "\001\022\033\n\treference\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\031\n\007contex" - + "t\030\004 \001(\tB\003\340A\002H\003\210\001\001\022\035\n\013instruction\030\005 \001(\tB\003" - + "\340A\002H\004\210\001\001B\r\n\013_predictionB\026\n\024_baseline_pre" - + "dictionB\014\n\n_referenceB\n\n\010_contextB\016\n\014_in" - + "struction\"X\n$PairwiseQuestionAnsweringQu" - + "alitySpec\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n" - + "\007version\030\002 \001(\005B\003\340A\001\"\276\001\n&PairwiseQuestion" - + "AnsweringQualityResult\022M\n\017pairwise_choic" - + "e\030\001 \001(\0162/.google.cloud.aiplatform.v1beta" - + "1.PairwiseChoiceB\003\340A\003\022\030\n\013explanation\030\002 \001" - + "(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" - + "\013_confidence\"\330\001\n\037QuestionAnsweringReleva" - + "nceInput\022Y\n\013metric_spec\030\001 \001(\0132?.google.c" - + "loud.aiplatform.v1beta1.QuestionAnswerin" - + "gRelevanceSpecB\003\340A\002\022Z\n\010instance\030\002 \001(\0132C." - + "google.cloud.aiplatform.v1beta1.Question" - + "AnsweringRelevanceInstanceB\003\340A\002\"\322\001\n\"Ques" - + "tionAnsweringRelevanceInstance\022\034\n\npredic" - + "tion\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB" - + "\003\340A\001H\001\210\001\001\022\031\n\007context\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\035\n\013" - + "instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_predicti" - + "onB\014\n\n_referenceB\n\n\010_contextB\016\n\014_instruc" - + "tion\"R\n\036QuestionAnsweringRelevanceSpec\022\032" - + "\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 " - + "\001(\005B\003\340A\001\"\214\001\n QuestionAnsweringRelevanceR" - + "esult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explan" - + "ation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A" - + "\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidence\"\336\001\n!Ques" - + "tionAnsweringHelpfulnessInput\022[\n\013metric_" - + "spec\030\001 \001(\0132A.google.cloud.aiplatform.v1b" - + "eta1.QuestionAnsweringHelpfulnessSpecB\003\340" - + "A\002\022\\\n\010instance\030\002 \001(\0132E.google.cloud.aipl" - + "atform.v1beta1.QuestionAnsweringHelpfuln" - + "essInstanceB\003\340A\002\"\324\001\n$QuestionAnsweringHe" - + "lpfulnessInstance\022\034\n\nprediction\030\001 \001(\tB\003\340" - + "A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007" - + "context\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\035\n\013instruction\030\004" - + " \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_predictionB\014\n\n_refere" - + "nceB\n\n\010_contextB\016\n\014_instruction\"T\n Quest" - + "ionAnsweringHelpfulnessSpec\022\032\n\ruse_refer" - + "ence\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\216\001" - + "\n\"QuestionAnsweringHelpfulnessResult\022\027\n\005" - + "score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001" - + "(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n" - + "\006_scoreB\r\n\013_confidence\"\336\001\n!QuestionAnswe" - + "ringCorrectnessInput\022[\n\013metric_spec\030\001 \001(" - + "\0132A.google.cloud.aiplatform.v1beta1.Ques" - + "tionAnsweringCorrectnessSpecB\003\340A\002\022\\\n\010ins" - + "tance\030\002 \001(\0132E.google.cloud.aiplatform.v1" - + "beta1.QuestionAnsweringCorrectnessInstan" - + "ceB\003\340A\002\"\324\001\n$QuestionAnsweringCorrectness" - + "Instance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033" - + "\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030\003" - + " \001(\tB\003\340A\001H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003\340A\002" - + "H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_c" - + "ontextB\016\n\014_instruction\"T\n QuestionAnswer" - + "ingCorrectnessSpec\022\032\n\ruse_reference\030\001 \001(" - + "\010B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\216\001\n\"Questio" - + "nAnsweringCorrectnessResult\022\027\n\005score\030\001 \001" - + "(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034" - + "\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r" - + "\n\013_confidence\"\267\001\n\024PointwiseMetricInput\022N" - + "\n\013metric_spec\030\001 \001(\01324.google.cloud.aipla" - + "tform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O" - + "\n\010instance\030\002 \001(\01328.google.cloud.aiplatfo" - + "rm.v1beta1.PointwiseMetricInstanceB\003\340A\002\"" - + ">\n\027PointwiseMetricInstance\022\027\n\rjson_insta" - + "nce\030\001 \001(\tH\000B\n\n\010instance\"Z\n\023PointwiseMetr" - + "icSpec\022(\n\026metric_prompt_template\030\001 \001(\tB\003" - + "\340A\002H\000\210\001\001B\031\n\027_metric_prompt_template\"T\n\025P" - + "ointwiseMetricResult\022\027\n\005score\030\001 \001(\002B\003\340A\003" - + "H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003B\010\n\006_scor" - + "e\"\264\001\n\023PairwiseMetricInput\022M\n\013metric_spec" - + "\030\001 \001(\01323.google.cloud.aiplatform.v1beta1" - + ".PairwiseMetricSpecB\003\340A\002\022N\n\010instance\030\002 \001" - + "(\01327.google.cloud.aiplatform.v1beta1.Pai" - + "rwiseMetricInstanceB\003\340A\002\"=\n\026PairwiseMetr" - + "icInstance\022\027\n\rjson_instance\030\001 \001(\tH\000B\n\n\010i" - + "nstance\"Y\n\022PairwiseMetricSpec\022(\n\026metric_" - + "prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001B\031\n\027_metr" - + "ic_prompt_template\"\177\n\024PairwiseMetricResu" - + "lt\022M\n\017pairwise_choice\030\001 \001(\0162/.google.clo" - + "ud.aiplatform.v1beta1.PairwiseChoiceB\003\340A" - + "\003\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\"\262\001\n\022ToolCall" - + "ValidInput\022L\n\013metric_spec\030\001 \001(\01322.google" - + ".cloud.aiplatform.v1beta1.ToolCallValidS" - + "pecB\003\340A\002\022N\n\tinstances\030\002 \003(\01326.google.clo" - + "ud.aiplatform.v1beta1.ToolCallValidInsta" - + "nceB\003\340A\002\"\023\n\021ToolCallValidSpec\"o\n\025ToolCal" - + "lValidInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H" - + "\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_pr" - + "edictionB\014\n\n_reference\"}\n\024ToolCallValidR" - + "esults\022e\n\035tool_call_valid_metric_values\030" - + "\001 \003(\01329.google.cloud.aiplatform.v1beta1." - + "ToolCallValidMetricValueB\003\340A\003\"=\n\030ToolCal" - + "lValidMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210" - + "\001\001B\010\n\006_score\"\262\001\n\022ToolNameMatchInput\022L\n\013m" - + "etric_spec\030\001 \001(\01322.google.cloud.aiplatfo" - + "rm.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n\tins" - + "tances\030\002 \003(\01326.google.cloud.aiplatform.v" - + "1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n\021Too" - + "lNameMatchSpec\"o\n\025ToolNameMatchInstance\022", - "\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treferen" - + "ce\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_re" - + "ference\"}\n\024ToolNameMatchResults\022e\n\035tool_" - + "name_match_metric_values\030\001 \003(\01329.google." - + "cloud.aiplatform.v1beta1.ToolNameMatchMe" - + "tricValueB\003\340A\003\"=\n\030ToolNameMatchMetricVal" - + "ue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\312\001" - + "\n\032ToolParameterKeyMatchInput\022T\n\013metric_s" - + "pec\030\001 \001(\0132:.google.cloud.aiplatform.v1be" - + "ta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n\tin" - + "stances\030\002 \003(\0132>.google.cloud.aiplatform." - + "v1beta1.ToolParameterKeyMatchInstanceB\003\340" - + "A\002\"\033\n\031ToolParameterKeyMatchSpec\"w\n\035ToolP" - + "arameterKeyMatchInstance\022\034\n\nprediction\030\001" - + " \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001" - + "\210\001\001B\r\n\013_predictionB\014\n\n_reference\"\226\001\n\034Too" - + "lParameterKeyMatchResults\022v\n&tool_parame" - + "ter_key_match_metric_values\030\001 \003(\0132A.goog" - + "le.cloud.aiplatform.v1beta1.ToolParamete" - + "rKeyMatchMetricValueB\003\340A\003\"E\n ToolParamet" - + "erKeyMatchMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A" - + "\003H\000\210\001\001B\010\n\006_score\"\307\001\n\031ToolParameterKVMatc" - + "hInput\022S\n\013metric_spec\030\001 \001(\01329.google.clo" - + "ud.aiplatform.v1beta1.ToolParameterKVMat" - + "chSpecB\003\340A\002\022U\n\tinstances\030\002 \003(\0132=.google." - + "cloud.aiplatform.v1beta1.ToolParameterKV" - + "MatchInstanceB\003\340A\002\"@\n\030ToolParameterKVMat" - + "chSpec\022$\n\027use_strict_string_match\030\001 \001(\010B" - + "\003\340A\001\"v\n\034ToolParameterKVMatchInstance\022\034\n\n" - + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030" - + "\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_refer" - + "ence\"\223\001\n\033ToolParameterKVMatchResults\022t\n%" - + "tool_parameter_kv_match_metric_values\030\001 " - + "\003(\0132@.google.cloud.aiplatform.v1beta1.To" - + "olParameterKVMatchMetricValueB\003\340A\003\"D\n\037To" - + "olParameterKVMatchMetricValue\022\027\n\005score\030\001" - + " \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score*W\n\016PairwiseChoi" - + "ce\022\037\n\033PAIRWISE_CHOICE_UNSPECIFIED\020\000\022\014\n\010B" - + "ASELINE\020\001\022\r\n\tCANDIDATE\020\002\022\007\n\003TIE\020\0032\270\002\n\021Ev" - + "aluationService\022\323\001\n\021EvaluateInstances\0229." - + "google.cloud.aiplatform.v1beta1.Evaluate" - + "InstancesRequest\032:.google.cloud.aiplatfo" - + "rm.v1beta1.EvaluateInstancesResponse\"G\202\323" - + "\344\223\002A\"\n" + + "\027PointwiseMetricInstance\022\027\n\rjson_instanc" + + "e\030\001 \001(\tH\000B\n\n\010instance\"Z\n\023PointwiseMetric" + + "Spec\022(\n\026metric_prompt_template\030\001 \001(\tB\003\340A" + + "\002H\000\210\001\001B\031\n\027_metric_prompt_template\"T\n\025Poi" + + "ntwiseMetricResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000", + "\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003B\010\n\006_score\"" + + "\264\001\n\023PairwiseMetricInput\022M\n\013metric_spec\030\001" + + " \001(\01323.google.cloud.aiplatform.v1beta1.P" + + "airwiseMetricSpecB\003\340A\002\022N\n\010instance\030\002 \001(\013" + + "27.google.cloud.aiplatform.v1beta1.Pairw" + + "iseMetricInstanceB\003\340A\002\"=\n\026PairwiseMetric" + + "Instance\022\027\n\rjson_instance\030\001 \001(\tH\000B\n\n\010ins" + + "tance\"Y\n\022PairwiseMetricSpec\022(\n\026metric_pr" + + "ompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001B\031\n\027_metric" + + "_prompt_template\"\177\n\024PairwiseMetricResult" + + "\022M\n\017pairwise_choice\030\001 \001(\0162/.google.cloud" + + ".aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022" + + "\030\n\013explanation\030\002 \001(\tB\003\340A\003\"\262\001\n\022ToolCallVa" + + "lidInput\022L\n\013metric_spec\030\001 \001(\01322.google.c" + + "loud.aiplatform.v1beta1.ToolCallValidSpe" + + "cB\003\340A\002\022N\n\tinstances\030\002 \003(\01326.google.cloud" + + ".aiplatform.v1beta1.ToolCallValidInstanc" + + "eB\003\340A\002\"\023\n\021ToolCallValidSpec\"o\n\025ToolCallV" + + "alidInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210" + + "\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_pred" + + "ictionB\014\n\n_reference\"}\n\024ToolCallValidRes" + + "ults\022e\n\035tool_call_valid_metric_values\030\001 " + + "\003(\01329.google.cloud.aiplatform.v1beta1.To" + + "olCallValidMetricValueB\003\340A\003\"=\n\030ToolCallV" + + "alidMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001" + + "B\010\n\006_score\"\262\001\n\022ToolNameMatchInput\022L\n\013met" + + "ric_spec\030\001 \001(\01322.google.cloud.aiplatform" + + ".v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n\tinsta" + + "nces\030\002 \003(\01326.google.cloud.aiplatform.v1b" + + "eta1.ToolNameMatchInstanceB\003\340A\002\"\023\n\021ToolN" + + "ameMatchSpec\"o\n\025ToolNameMatchInstance\022\034\n" + + "\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference" + + "\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_refe" + + "rence\"}\n\024ToolNameMatchResults\022e\n\035tool_na" + + "me_match_metric_values\030\001 \003(\01329.google.cl" + + "oud.aiplatform.v1beta1.ToolNameMatchMetr" + + "icValueB\003\340A\003\"=\n\030ToolNameMatchMetricValue" + + "\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\312\001\n\032" + + "ToolParameterKeyMatchInput\022T\n\013metric_spe" + + "c\030\001 \001(\0132:.google.cloud.aiplatform.v1beta" + + "1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n\tinst" + + "ances\030\002 \003(\0132>.google.cloud.aiplatform.v1" + + "beta1.ToolParameterKeyMatchInstanceB\003\340A\002" + + "\"\033\n\031ToolParameterKeyMatchSpec\"w\n\035ToolPar" + + "ameterKeyMatchInstance\022\034\n\nprediction\030\001 \001" + + "(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001\210\001" + + "\001B\r\n\013_predictionB\014\n\n_reference\"\226\001\n\034ToolP" + + "arameterKeyMatchResults\022v\n&tool_paramete" + + "r_key_match_metric_values\030\001 \003(\0132A.google" + + ".cloud.aiplatform.v1beta1.ToolParameterK" + + "eyMatchMetricValueB\003\340A\003\"E\n ToolParameter" + + "KeyMatchMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H" + + "\000\210\001\001B\010\n\006_score\"\307\001\n\031ToolParameterKVMatchI" + + "nput\022S\n\013metric_spec\030\001 \001(\01329.google.cloud" + + ".aiplatform.v1beta1.ToolParameterKVMatch" + + "SpecB\003\340A\002\022U\n\tinstances\030\002 \003(\0132=.google.cl" + + "oud.aiplatform.v1beta1.ToolParameterKVMa" + + "tchInstanceB\003\340A\002\"@\n\030ToolParameterKVMatch" + + "Spec\022$\n\027use_strict_string_match\030\001 \001(\010B\003\340" + + "A\001\"v\n\034ToolParameterKVMatchInstance\022\034\n\npr" + + "ediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 " + + "\001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_referen" + + "ce\"\223\001\n\033ToolParameterKVMatchResults\022t\n%to" + + "ol_parameter_kv_match_metric_values\030\001 \003(" + + "\0132@.google.cloud.aiplatform.v1beta1.Tool" + + "ParameterKVMatchMetricValueB\003\340A\003\"D\n\037Tool" + + "ParameterKVMatchMetricValue\022\027\n\005score\030\001 \001" + + "(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\307\001\n\031TrajectoryExa" + + "ctMatchInput\022S\n\013metric_spec\030\001 \001(\01329.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryEx" + + "actMatchSpecB\003\340A\002\022U\n\tinstances\030\002 \003(\0132=.g" + + "oogle.cloud.aiplatform.v1beta1.Trajector" + + "yExactMatchInstanceB\003\340A\002\"\032\n\030TrajectoryEx" + + "actMatchSpec\"\372\001\n\034TrajectoryExactMatchIns" + + "tance\022S\n\024predicted_trajectory\030\001 \001(\0132+.go" + + "ogle.cloud.aiplatform.v1beta1.Trajectory" + + "B\003\340A\002H\000\210\001\001\022S\n\024reference_trajectory\030\002 \001(\013" + + "2+.google.cloud.aiplatform.v1beta1.Traje" + + "ctoryB\003\340A\002H\001\210\001\001B\027\n\025_predicted_trajectory" + + "B\027\n\025_reference_trajectory\"\222\001\n\033Trajectory" + + "ExactMatchResults\022s\n$trajectory_exact_ma" + + "tch_metric_values\030\001 \003(\0132@.google.cloud.a" + + "iplatform.v1beta1.TrajectoryExactMatchMe" + + "tricValueB\003\340A\003\"D\n\037TrajectoryExactMatchMe" + + "tricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_s" + + "core\"\315\001\n\033TrajectoryInOrderMatchInput\022U\n\013" + + "metric_spec\030\001 \001(\0132;.google.cloud.aiplatf" + + "orm.v1beta1.TrajectoryInOrderMatchSpecB\003" + + "\340A\002\022W\n\tinstances\030\002 \003(\0132?.google.cloud.ai" + + "platform.v1beta1.TrajectoryInOrderMatchI" + + "nstanceB\003\340A\002\"\034\n\032TrajectoryInOrderMatchSp" + + "ec\"\374\001\n\036TrajectoryInOrderMatchInstance\022S\n" + + "\024predicted_trajectory\030\001 \001(\0132+.google.clo" + + "ud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210" + + "\001\001\022S\n\024reference_trajectory\030\002 \001(\0132+.googl" + + "e.cloud.aiplatform.v1beta1.TrajectoryB\003\340" + + "A\002H\001\210\001\001B\027\n\025_predicted_trajectoryB\027\n\025_ref" + + "erence_trajectory\"\231\001\n\035TrajectoryInOrderM" + + "atchResults\022x\n\'trajectory_in_order_match" + + "_metric_values\030\001 \003(\0132B.google.cloud.aipl" + + "atform.v1beta1.TrajectoryInOrderMatchMet" + + "ricValueB\003\340A\003\"F\n!TrajectoryInOrderMatchM" + + "etricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_" + + "score\"\320\001\n\034TrajectoryAnyOrderMatchInput\022V" + + "\n\013metric_spec\030\001 \001(\0132<.google.cloud.aipla" + + "tform.v1beta1.TrajectoryAnyOrderMatchSpe" + + "cB\003\340A\002\022X\n\tinstances\030\002 \003(\0132@.google.cloud" + + ".aiplatform.v1beta1.TrajectoryAnyOrderMa" + + "tchInstanceB\003\340A\002\"\035\n\033TrajectoryAnyOrderMa" + + "tchSpec\"\375\001\n\037TrajectoryAnyOrderMatchInsta" + + "nce\022S\n\024predicted_trajectory\030\001 \001(\0132+.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryB\003" + + "\340A\002H\000\210\001\001\022S\n\024reference_trajectory\030\002 \001(\0132+" + + ".google.cloud.aiplatform.v1beta1.Traject" + + "oryB\003\340A\002H\001\210\001\001B\027\n\025_predicted_trajectoryB\027" + + "\n\025_reference_trajectory\"\234\001\n\036TrajectoryAn" + + "yOrderMatchResults\022z\n(trajectory_any_ord" + + "er_match_metric_values\030\001 \003(\0132C.google.cl" + + "oud.aiplatform.v1beta1.TrajectoryAnyOrde" + + "rMatchMetricValueB\003\340A\003\"G\n\"TrajectoryAnyO" + + "rderMatchMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003" + + "H\000\210\001\001B\010\n\006_score\"\304\001\n\030TrajectoryPrecisionI" + + "nput\022R\n\013metric_spec\030\001 \001(\01328.google.cloud" + + ".aiplatform.v1beta1.TrajectoryPrecisionS" + + "pecB\003\340A\002\022T\n\tinstances\030\002 \003(\0132<.google.clo" + + "ud.aiplatform.v1beta1.TrajectoryPrecisio" + + "nInstanceB\003\340A\002\"\031\n\027TrajectoryPrecisionSpe" + + "c\"\371\001\n\033TrajectoryPrecisionInstance\022S\n\024pre" + + "dicted_trajectory\030\001 \001(\0132+.google.cloud.a" + + "iplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S" + + "\n\024reference_trajectory\030\002 \001(\0132+.google.cl" + + "oud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001" + + "\210\001\001B\027\n\025_predicted_trajectoryB\027\n\025_referen" + + "ce_trajectory\"\216\001\n\032TrajectoryPrecisionRes" + + "ults\022p\n\"trajectory_precision_metric_valu" + + "es\030\001 \003(\0132?.google.cloud.aiplatform.v1bet" + + "a1.TrajectoryPrecisionMetricValueB\003\340A\003\"C" + + "\n\036TrajectoryPrecisionMetricValue\022\027\n\005scor" + + "e\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\273\001\n\025Trajecto" + + "ryRecallInput\022O\n\013metric_spec\030\001 \001(\01325.goo" + + "gle.cloud.aiplatform.v1beta1.TrajectoryR" + + "ecallSpecB\003\340A\002\022Q\n\tinstances\030\002 \003(\01329.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryRe" + + "callInstanceB\003\340A\002\"\026\n\024TrajectoryRecallSpe" + + "c\"\366\001\n\030TrajectoryRecallInstance\022S\n\024predic" + + "ted_trajectory\030\001 \001(\0132+.google.cloud.aipl" + + "atform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n\024r" + + "eference_trajectory\030\002 \001(\0132+.google.cloud" + + ".aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001" + + "B\027\n\025_predicted_trajectoryB\027\n\025_reference_" + + "trajectory\"\205\001\n\027TrajectoryRecallResults\022j" + + "\n\037trajectory_recall_metric_values\030\001 \003(\0132" + + "<.google.cloud.aiplatform.v1beta1.Trajec" + + "toryRecallMetricValueB\003\340A\003\"@\n\033Trajectory" + + "RecallMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210" + + "\001\001B\010\n\006_score\"\320\001\n\034TrajectorySingleToolUse" + + "Input\022V\n\013metric_spec\030\001 \001(\0132<.google.clou" + + "d.aiplatform.v1beta1.TrajectorySingleToo" + + "lUseSpecB\003\340A\002\022X\n\tinstances\030\002 \003(\0132@.googl" + + "e.cloud.aiplatform.v1beta1.TrajectorySin" + + "gleToolUseInstanceB\003\340A\002\"H\n\033TrajectorySin" + + "gleToolUseSpec\022\033\n\ttool_name\030\001 \001(\tB\003\340A\002H\000" + + "\210\001\001B\014\n\n_tool_name\"\217\001\n\037TrajectorySingleTo" + + "olUseInstance\022S\n\024predicted_trajectory\030\001 " + + "\001(\0132+.google.cloud.aiplatform.v1beta1.Tr" + + "ajectoryB\003\340A\002H\000\210\001\001B\027\n\025_predicted_traject" + + "ory\"\234\001\n\036TrajectorySingleToolUseResults\022z" + + "\n(trajectory_single_tool_use_metric_valu" + + "es\030\001 \003(\0132C.google.cloud.aiplatform.v1bet" + + "a1.TrajectorySingleToolUseMetricValueB\003\340" + + "A\003\"G\n\"TrajectorySingleToolUseMetricValue" + + "\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"P\n\nT" + + "rajectory\022B\n\ntool_calls\030\001 \003(\0132).google.c" + + "loud.aiplatform.v1beta1.ToolCallB\003\340A\002\"b\n" + + "\010ToolCall\022\033\n\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\034" + + "\n\ntool_input\030\002 \001(\tB\003\340A\001H\001\210\001\001B\014\n\n_tool_na" + + "meB\r\n\013_tool_input*W\n\016PairwiseChoice\022\037\n\033P" + + "AIRWISE_CHOICE_UNSPECIFIED\020\000\022\014\n\010BASELINE" + + "\020\001\022\r\n\tCANDIDATE\020\002\022\007\n\003TIE\020\0032\270\002\n\021Evaluatio" + + "nService\022\323\001\n\021EvaluateInstances\0229.google." + + "cloud.aiplatform.v1beta1.EvaluateInstanc" + + "esRequest\032:.google.cloud.aiplatform.v1be" + + "ta1.EvaluateInstancesResponse\"G\202\323\344\223\002A\" getParserForType() { } } + public interface CustomEnvironmentSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + boolean hasMachineSpec(); + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec(); + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder(); + + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + boolean hasPersistentDiskSpec(); + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getPersistentDiskSpec(); + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder(); + + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + boolean hasNetworkSpec(); + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + com.google.cloud.aiplatform.v1beta1.NetworkSpec getNetworkSpec(); + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOrBuilder(); + } + /** + * + * + *
+   * Compute configuration to use for an execution job.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec} + */ + public static final class CustomEnvironmentSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + CustomEnvironmentSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomEnvironmentSpec.newBuilder() to construct. + private CustomEnvironmentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomEnvironmentSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomEnvironmentSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.class, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + .class); + } + + private int bitField0_; + public static final int MACHINE_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.MachineSpec machineSpec_; + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + @java.lang.Override + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + + public static final int PERSISTENT_DISK_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistentDiskSpec_; + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + @java.lang.Override + public boolean hasPersistentDiskSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getPersistentDiskSpec() { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder() { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + + public static final int NETWORK_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.NetworkSpec networkSpec_; + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + @java.lang.Override + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NetworkSpec getNetworkSpec() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMachineSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getNetworkSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMachineSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNetworkSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec other = + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) obj; + + if (hasMachineSpec() != other.hasMachineSpec()) return false; + if (hasMachineSpec()) { + if (!getMachineSpec().equals(other.getMachineSpec())) return false; + } + if (hasPersistentDiskSpec() != other.hasPersistentDiskSpec()) return false; + if (hasPersistentDiskSpec()) { + if (!getPersistentDiskSpec().equals(other.getPersistentDiskSpec())) return false; + } + if (hasNetworkSpec() != other.hasNetworkSpec()) return false; + if (hasNetworkSpec()) { + if (!getNetworkSpec().equals(other.getNetworkSpec())) 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 (hasMachineSpec()) { + hash = (37 * hash) + MACHINE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMachineSpec().hashCode(); + } + if (hasPersistentDiskSpec()) { + hash = (37 * hash) + PERSISTENT_DISK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPersistentDiskSpec().hashCode(); + } + if (hasNetworkSpec()) { + hash = (37 * hash) + NETWORK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNetworkSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Compute configuration to use for an execution job.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .class, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMachineSpecFieldBuilder(); + getPersistentDiskSpecFieldBuilder(); + getNetworkSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + persistentDiskSpec_ = null; + if (persistentDiskSpecBuilder_ != null) { + persistentDiskSpecBuilder_.dispose(); + persistentDiskSpecBuilder_ = null; + } + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + build() { + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + buildPartial() { + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec result = + new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.persistentDiskSpec_ = + persistentDiskSpecBuilder_ == null + ? persistentDiskSpec_ + : persistentDiskSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkSpec_ = + networkSpecBuilder_ == null ? networkSpec_ : networkSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance()) return this; + if (other.hasMachineSpec()) { + mergeMachineSpec(other.getMachineSpec()); + } + if (other.hasPersistentDiskSpec()) { + mergePersistentDiskSpec(other.getPersistentDiskSpec()); + } + if (other.hasNetworkSpec()) { + mergeNetworkSpec(other.getNetworkSpec()); + } + 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(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getPersistentDiskSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getNetworkSpecFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.aiplatform.v1beta1.MachineSpec machineSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MachineSpec, + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder> + machineSpecBuilder_; + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { + if (machineSpecBuilder_ == null) { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; + } else { + return machineSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public Builder setMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { + if (machineSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + machineSpec_ = value; + } else { + machineSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public Builder setMachineSpec( + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder builderForValue) { + if (machineSpecBuilder_ == null) { + machineSpec_ = builderForValue.build(); + } else { + machineSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { + if (machineSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && machineSpec_ != null + && machineSpec_ + != com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); + } else { + machineSpec_ = value; + } + } else { + machineSpecBuilder_.mergeFrom(value); + } + if (machineSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public Builder clearMachineSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder getMachineSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMachineSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + if (machineSpecBuilder_ != null) { + return machineSpecBuilder_.getMessageOrBuilder(); + } else { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MachineSpec, + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder> + getMachineSpecFieldBuilder() { + if (machineSpecBuilder_ == null) { + machineSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MachineSpec, + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder>( + getMachineSpec(), getParentForChildren(), isClean()); + machineSpec_ = null; + } + return machineSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistentDiskSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder> + persistentDiskSpecBuilder_; + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + public boolean hasPersistentDiskSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getPersistentDiskSpec() { + if (persistentDiskSpecBuilder_ == null) { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } else { + return persistentDiskSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder setPersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec value) { + if (persistentDiskSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistentDiskSpec_ = value; + } else { + persistentDiskSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder setPersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder builderForValue) { + if (persistentDiskSpecBuilder_ == null) { + persistentDiskSpec_ = builderForValue.build(); + } else { + persistentDiskSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder mergePersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec value) { + if (persistentDiskSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && persistentDiskSpec_ != null + && persistentDiskSpec_ + != com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance()) { + getPersistentDiskSpecBuilder().mergeFrom(value); + } else { + persistentDiskSpec_ = value; + } + } else { + persistentDiskSpecBuilder_.mergeFrom(value); + } + if (persistentDiskSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder clearPersistentDiskSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + persistentDiskSpec_ = null; + if (persistentDiskSpecBuilder_ != null) { + persistentDiskSpecBuilder_.dispose(); + persistentDiskSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder + getPersistentDiskSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPersistentDiskSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder() { + if (persistentDiskSpecBuilder_ != null) { + return persistentDiskSpecBuilder_.getMessageOrBuilder(); + } else { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder> + getPersistentDiskSpecFieldBuilder() { + if (persistentDiskSpecBuilder_ == null) { + persistentDiskSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder>( + getPersistentDiskSpec(), getParentForChildren(), isClean()); + persistentDiskSpec_ = null; + } + return persistentDiskSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.NetworkSpec networkSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NetworkSpec, + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder> + networkSpecBuilder_; + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + public com.google.cloud.aiplatform.v1beta1.NetworkSpec getNetworkSpec() { + if (networkSpecBuilder_ == null) { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } else { + return networkSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public Builder setNetworkSpec(com.google.cloud.aiplatform.v1beta1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkSpec_ = value; + } else { + networkSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public Builder setNetworkSpec( + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder builderForValue) { + if (networkSpecBuilder_ == null) { + networkSpec_ = builderForValue.build(); + } else { + networkSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public Builder mergeNetworkSpec(com.google.cloud.aiplatform.v1beta1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && networkSpec_ != null + && networkSpec_ + != com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance()) { + getNetworkSpecBuilder().mergeFrom(value); + } else { + networkSpec_ = value; + } + } else { + networkSpecBuilder_.mergeFrom(value); + } + if (networkSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public Builder clearNetworkSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder getNetworkSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getNetworkSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + if (networkSpecBuilder_ != null) { + return networkSpecBuilder_.getMessageOrBuilder(); + } else { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NetworkSpec, + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder> + getNetworkSpecFieldBuilder() { + if (networkSpecBuilder_ == null) { + networkSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NetworkSpec, + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder>( + getNetworkSpec(), getParentForChildren(), isClean()); + networkSpec_ = null; + } + return networkSpecBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + private static final com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob + .CustomEnvironmentSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomEnvironmentSpec 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.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int notebookSourceCase_ = 0; @@ -2518,6 +3923,7 @@ public enum EnvironmentSpecCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME(14), + CUSTOM_ENVIRONMENT_SPEC(16), ENVIRONMENTSPEC_NOT_SET(0); private final int value; @@ -2538,6 +3944,8 @@ public static EnvironmentSpecCase forNumber(int value) { switch (value) { case 14: return NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME; + case 16: + return CUSTOM_ENVIRONMENT_SPEC; case 0: return ENVIRONMENTSPEC_NOT_SET; default: @@ -2917,6 +4325,69 @@ public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameByte } } + public static final int CUSTOM_ENVIRONMENT_SPEC_FIELD_NUMBER = 16; + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + @java.lang.Override + public boolean hasCustomEnvironmentSpec() { + return environmentSpecCase_ == 16; + } + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec() { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder() { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + public static final int GCS_OUTPUT_URI_FIELD_NUMBER = 8; /** * @@ -3787,6 +5258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (environmentSpecCase_ == 14) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, environmentSpec_); } + if (environmentSpecCase_ == 16) { + output.writeMessage( + 16, + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_); + } if (notebookSourceCase_ == 17) { output.writeMessage( 17, @@ -3858,6 +5335,13 @@ public int getSerializedSize() { if (environmentSpecCase_ == 14) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, environmentSpec_); } + if (environmentSpecCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_); + } if (notebookSourceCase_ == 17) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -3943,6 +5427,9 @@ public boolean equals(final java.lang.Object obj) { if (!getNotebookRuntimeTemplateResourceName() .equals(other.getNotebookRuntimeTemplateResourceName())) return false; break; + case 16: + if (!getCustomEnvironmentSpec().equals(other.getCustomEnvironmentSpec())) return false; + break; case 0: default: } @@ -4029,6 +5516,10 @@ public int hashCode() { hash = (37 * hash) + NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getNotebookRuntimeTemplateResourceName().hashCode(); break; + case 16: + hash = (37 * hash) + CUSTOM_ENVIRONMENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCustomEnvironmentSpec().hashCode(); + break; case 0: default: } @@ -4236,6 +5727,9 @@ public Builder clear() { if (directNotebookSourceBuilder_ != null) { directNotebookSourceBuilder_.clear(); } + if (customEnvironmentSpecBuilder_ != null) { + customEnvironmentSpecBuilder_.clear(); + } name_ = ""; displayName_ = ""; executionTimeout_ = null; @@ -4311,41 +5805,41 @@ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.displayName_ = displayName_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.executionTimeout_ = executionTimeoutBuilder_ == null ? executionTimeout_ : executionTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.scheduleResourceName_ = scheduleResourceName_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.jobState_ = jobState_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; @@ -4368,6 +5862,9 @@ private void buildPartialOneofs( } result.environmentSpecCase_ = environmentSpecCase_; result.environmentSpec_ = this.environmentSpec_; + if (environmentSpecCase_ == 16 && customEnvironmentSpecBuilder_ != null) { + result.environmentSpec_ = customEnvironmentSpecBuilder_.build(); + } result.executionSinkCase_ = executionSinkCase_; result.executionSink_ = this.executionSink_; result.executionIdentityCase_ = executionIdentityCase_; @@ -4422,12 +5919,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasExecutionTimeout()) { @@ -4435,7 +5932,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo } if (!other.getScheduleResourceName().isEmpty()) { scheduleResourceName_ = other.scheduleResourceName_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (other.jobState_ != 0) { @@ -4451,7 +5948,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -4484,6 +5981,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo onChanged(); break; } + case CUSTOM_ENVIRONMENT_SPEC: + { + mergeCustomEnvironmentSpec(other.getCustomEnvironmentSpec()); + break; + } case ENVIRONMENTSPEC_NOT_SET: { break; @@ -4551,13 +6053,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 18 case 26: @@ -4578,13 +6080,13 @@ public Builder mergeFrom( { input.readMessage( getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 42 case 50: { scheduleResourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 50 case 66: @@ -4604,25 +6106,25 @@ public Builder mergeFrom( case 80: { jobState_ = input.readEnum(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 80 case 90: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 90 case 98: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 98 case 106: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 114: @@ -4632,6 +6134,13 @@ public Builder mergeFrom( environmentSpec_ = s; break; } // case 114 + case 130: + { + input.readMessage( + getCustomEnvironmentSpecFieldBuilder().getBuilder(), extensionRegistry); + environmentSpecCase_ = 16; + break; + } // case 130 case 138: { input.readMessage( @@ -4655,13 +6164,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 154 case 178: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 178 default: @@ -5641,6 +7150,254 @@ public Builder setNotebookRuntimeTemplateResourceNameBytes( return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder> + customEnvironmentSpecBuilder_; + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + @java.lang.Override + public boolean hasCustomEnvironmentSpec() { + return environmentSpecCase_ == 16; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec() { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } else { + if (environmentSpecCase_ == 16) { + return customEnvironmentSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder setCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec value) { + if (customEnvironmentSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentSpec_ = value; + onChanged(); + } else { + customEnvironmentSpecBuilder_.setMessage(value); + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder setCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + builderForValue) { + if (customEnvironmentSpecBuilder_ == null) { + environmentSpec_ = builderForValue.build(); + onChanged(); + } else { + customEnvironmentSpecBuilder_.setMessage(builderForValue.build()); + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder mergeCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec value) { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16 + && environmentSpec_ + != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance()) { + environmentSpec_ = + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob + .CustomEnvironmentSpec) + environmentSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + environmentSpec_ = value; + } + onChanged(); + } else { + if (environmentSpecCase_ == 16) { + customEnvironmentSpecBuilder_.mergeFrom(value); + } else { + customEnvironmentSpecBuilder_.setMessage(value); + } + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder clearCustomEnvironmentSpec() { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + onChanged(); + } + } else { + if (environmentSpecCase_ == 16) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + } + customEnvironmentSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + getCustomEnvironmentSpecBuilder() { + return getCustomEnvironmentSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder() { + if ((environmentSpecCase_ == 16) && (customEnvironmentSpecBuilder_ != null)) { + return customEnvironmentSpecBuilder_.getMessageOrBuilder(); + } else { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder> + getCustomEnvironmentSpecFieldBuilder() { + if (customEnvironmentSpecBuilder_ == null) { + if (!(environmentSpecCase_ == 16)) { + environmentSpec_ = + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + customEnvironmentSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob + .CustomEnvironmentSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_, + getParentForChildren(), + isClean()); + environmentSpec_ = null; + } + environmentSpecCase_ = 16; + onChanged(); + return customEnvironmentSpecBuilder_; + } + /** * * @@ -6114,7 +7871,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6132,7 +7889,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -6155,7 +7912,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -6225,7 +7982,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6243,7 +8000,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -6266,7 +8023,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6289,7 +8046,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -6329,7 +8086,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { } else { executionTimeoutBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6348,7 +8105,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF } else { executionTimeoutBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6363,7 +8120,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && executionTimeout_ != null && executionTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getExecutionTimeoutBuilder().mergeFrom(value); @@ -6374,7 +8131,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { executionTimeoutBuilder_.mergeFrom(value); } if (executionTimeout_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -6389,7 +8146,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { * .google.protobuf.Duration execution_timeout = 5; */ public Builder clearExecutionTimeout() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); executionTimeout_ = null; if (executionTimeoutBuilder_ != null) { executionTimeoutBuilder_.dispose(); @@ -6408,7 +8165,7 @@ public Builder clearExecutionTimeout() { * .google.protobuf.Duration execution_timeout = 5; */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } @@ -6530,7 +8287,7 @@ public Builder setScheduleResourceName(java.lang.String value) { throw new NullPointerException(); } scheduleResourceName_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6551,7 +8308,7 @@ public Builder setScheduleResourceName(java.lang.String value) { */ public Builder clearScheduleResourceName() { scheduleResourceName_ = getDefaultInstance().getScheduleResourceName(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -6577,7 +8334,7 @@ public Builder setScheduleResourceNameBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); scheduleResourceName_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6616,7 +8373,7 @@ public int getJobStateValue() { */ public Builder setJobStateValue(int value) { jobState_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6657,7 +8414,7 @@ public Builder setJobState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; jobState_ = value.getNumber(); onChanged(); return this; @@ -6676,7 +8433,7 @@ public Builder setJobState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearJobState() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); jobState_ = 0; onChanged(); return this; @@ -6700,7 +8457,7 @@ public Builder clearJobState() { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -6742,7 +8499,7 @@ public Builder setStatus(com.google.rpc.Status value) { } else { statusBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6763,7 +8520,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { } else { statusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6780,7 +8537,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && status_ != null && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); @@ -6791,7 +8548,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { statusBuilder_.mergeFrom(value); } if (status_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -6808,7 +8565,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); @@ -6829,7 +8586,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getStatusBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -6896,7 +8653,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -6940,7 +8697,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6961,7 +8718,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6978,7 +8735,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -6989,7 +8746,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -7006,7 +8763,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -7027,7 +8784,7 @@ public Builder clearCreateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -7100,7 +8857,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -7146,7 +8903,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7168,7 +8925,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7186,7 +8943,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -7197,7 +8954,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -7215,7 +8972,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -7237,7 +8994,7 @@ public Builder clearUpdateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -7308,7 +9065,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return labels_; } @@ -7425,7 +9182,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -7456,7 +9213,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return internalGetMutableLabels().getMutableMap(); } /** @@ -7484,7 +9241,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } /** @@ -7506,7 +9263,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } @@ -7530,7 +9287,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -7574,7 +9331,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7596,7 +9353,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7613,7 +9370,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -7625,7 +9382,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -7642,7 +9399,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -7663,7 +9420,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java index 7fbfcce6669b..a17686f3c28e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java @@ -198,6 +198,49 @@ public interface NotebookExecutionJobOrBuilder */ com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + boolean hasCustomEnvironmentSpec(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java index d5ef863487f9..a865272ff232 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DirectNotebookSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DirectNotebookSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,55 +67,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "or.proto\032\031google/api/resource.proto\0325goo" + "gle/cloud/aiplatform/v1beta1/encryption_" + "spec.proto\032/google/cloud/aiplatform/v1be" - + "ta1/job_state.proto\032\036google/protobuf/dur" - + "ation.proto\032\037google/protobuf/timestamp.p" - + "roto\032\027google/rpc/status.proto\"\260\014\n\024Notebo" - + "okExecutionJob\022t\n\032dataform_repository_so" - + "urce\030\003 \001(\0132N.google.cloud.aiplatform.v1b" - + "eta1.NotebookExecutionJob.DataformReposi" - + "torySourceH\000\022f\n\023gcs_notebook_source\030\004 \001(" - + "\0132G.google.cloud.aiplatform.v1beta1.Note" - + "bookExecutionJob.GcsNotebookSourceH\000\022l\n\026" - + "direct_notebook_source\030\021 \001(\0132J.google.cl" - + "oud.aiplatform.v1beta1.NotebookExecution" - + "Job.DirectNotebookSourceH\000\022i\n\'notebook_r" - + "untime_template_resource_name\030\016 \001(\tB6\372A3" - + "\n1aiplatform.googleapis.com/NotebookRunt" - + "imeTemplateH\001\022\030\n\016gcs_output_uri\030\010 \001(\tH\002\022" - + "\030\n\016execution_user\030\t \001(\tH\003\022\031\n\017service_acc" - + "ount\030\022 \001(\tH\003\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014displ" - + "ay_name\030\002 \001(\t\0224\n\021execution_timeout\030\005 \001(\013" - + "2\031.google.protobuf.Duration\022J\n\026schedule_" - + "resource_name\030\006 \001(\tB*\340A\003\372A$\n\"aiplatform." - + "googleapis.com/Schedule\022A\n\tjob_state\030\n \001" - + "(\0162).google.cloud.aiplatform.v1beta1.Job" - + "StateB\003\340A\003\022\'\n\006status\030\013 \001(\0132\022.google.rpc." - + "StatusB\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\r \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "Q\n\006labels\030\023 \003(\0132A.google.cloud.aiplatfor" - + "m.v1beta1.NotebookExecutionJob.LabelsEnt" - + "ry\022H\n\017encryption_spec\030\026 \001(\0132/.google.clo" - + "ud.aiplatform.v1beta1.EncryptionSpec\032Y\n\030" - + "DataformRepositorySource\022)\n!dataform_rep" - + "ository_resource_name\030\001 \001(\t\022\022\n\ncommit_sh" - + "a\030\002 \001(\t\0324\n\021GcsNotebookSource\022\013\n\003uri\030\001 \001(" - + "\t\022\022\n\ngeneration\030\002 \001(\t\032\'\n\024DirectNotebookS" - + "ource\022\017\n\007content\030\001 \001(\014\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n.ai" - + "platform.googleapis.com/NotebookExecutio" - + "nJob\022Vprojects/{project}/locations/{loca" - + "tion}/notebookExecutionJobs/{notebook_ex" - + "ecution_job}*\025notebookExecutionJobs2\024not" - + "ebookExecutionJobB\021\n\017notebook_sourceB\022\n\020" - + "environment_specB\020\n\016execution_sinkB\024\n\022ex" - + "ecution_identityB\360\001\n#com.google.cloud.ai" - + "platform.v1beta1B\031NotebookExecutionJobPr" - + "otoP\001ZCcloud.google.com/go/aiplatform/ap" - + "iv1beta1/aiplatformpb;aiplatformpb\252\002\037Goo" - + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" - + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" - + "AIPlatform::V1beta1b\006proto3" + + "ta1/job_state.proto\0327google/cloud/aiplat" + + "form/v1beta1/machine_resources.proto\0322go" + + "ogle/cloud/aiplatform/v1beta1/network_sp" + + "ec.proto\032\036google/protobuf/duration.proto" + + "\032\037google/protobuf/timestamp.proto\032\027googl" + + "e/rpc/status.proto\"\225\017\n\024NotebookExecution" + + "Job\022t\n\032dataform_repository_source\030\003 \001(\0132" + + "N.google.cloud.aiplatform.v1beta1.Notebo" + + "okExecutionJob.DataformRepositorySourceH" + + "\000\022f\n\023gcs_notebook_source\030\004 \001(\0132G.google." + + "cloud.aiplatform.v1beta1.NotebookExecuti" + + "onJob.GcsNotebookSourceH\000\022l\n\026direct_note" + + "book_source\030\021 \001(\0132J.google.cloud.aiplatf" + + "orm.v1beta1.NotebookExecutionJob.DirectN" + + "otebookSourceH\000\022i\n\'notebook_runtime_temp" + + "late_resource_name\030\016 \001(\tB6\372A3\n1aiplatfor" + + "m.googleapis.com/NotebookRuntimeTemplate" + + "H\001\022n\n\027custom_environment_spec\030\020 \001(\0132K.go" + + "ogle.cloud.aiplatform.v1beta1.NotebookEx" + + "ecutionJob.CustomEnvironmentSpecH\001\022\030\n\016gc" + + "s_output_uri\030\010 \001(\tH\002\022\030\n\016execution_user\030\t" + + " \001(\tH\003\022\031\n\017service_account\030\022 \001(\tH\003\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\0224\n\021ex" + + "ecution_timeout\030\005 \001(\0132\031.google.protobuf." + + "Duration\022J\n\026schedule_resource_name\030\006 \001(\t" + + "B*\340A\003\372A$\n\"aiplatform.googleapis.com/Sche" + + "dule\022A\n\tjob_state\030\n \001(\0162).google.cloud.a" + + "iplatform.v1beta1.JobStateB\003\340A\003\022\'\n\006statu" + + "s\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013crea" + + "te_time\030\014 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\r \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022Q\n\006labels\030\023 \003(\0132A.g" + + "oogle.cloud.aiplatform.v1beta1.NotebookE" + + "xecutionJob.LabelsEntry\022H\n\017encryption_sp" + + "ec\030\026 \001(\0132/.google.cloud.aiplatform.v1bet" + + "a1.EncryptionSpec\032Y\n\030DataformRepositoryS" + + "ource\022)\n!dataform_repository_resource_na" + + "me\030\001 \001(\t\022\022\n\ncommit_sha\030\002 \001(\t\0324\n\021GcsNoteb" + + "ookSource\022\013\n\003uri\030\001 \001(\t\022\022\n\ngeneration\030\002 \001" + + "(\t\032\'\n\024DirectNotebookSource\022\017\n\007content\030\001 " + + "\001(\014\032\362\001\n\025CustomEnvironmentSpec\022B\n\014machine" + + "_spec\030\001 \001(\0132,.google.cloud.aiplatform.v1" + + "beta1.MachineSpec\022Q\n\024persistent_disk_spe" + + "c\030\002 \001(\01323.google.cloud.aiplatform.v1beta" + + "1.PersistentDiskSpec\022B\n\014network_spec\030\003 \001" + + "(\0132,.google.cloud.aiplatform.v1beta1.Net" + + "workSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n.aiplatform.googl" + + "eapis.com/NotebookExecutionJob\022Vprojects" + + "/{project}/locations/{location}/notebook" + + "ExecutionJobs/{notebook_execution_job}*\025" + + "notebookExecutionJobs2\024notebookExecution" + + "JobB\021\n\017notebook_sourceB\022\n\020environment_sp" + + "ecB\020\n\016execution_sinkB\024\n\022execution_identi" + + "tyB\360\001\n#com.google.cloud.aiplatform.v1bet" + + "a1B\031NotebookExecutionJobProtoP\001ZCcloud.g" + + "oogle.com/go/aiplatform/apiv1beta1/aipla" + + "tformpb;aiplatformpb\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -121,6 +137,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.NetworkSpecProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -135,6 +153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsNotebookSource", "DirectNotebookSource", "NotebookRuntimeTemplateResourceName", + "CustomEnvironmentSpec", "GcsOutputUri", "ExecutionUser", "ServiceAccount", @@ -183,10 +202,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Content", }); - internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor .getNestedTypes() .get(3); + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor, + new java.lang.String[] { + "MachineSpec", "PersistentDiskSpec", "NetworkSpec", + }); + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(4); internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_descriptor, @@ -204,6 +233,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.NetworkSpecProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCall.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCall.java new file mode 100644 index 000000000000..c0492853b507 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCall.java @@ -0,0 +1,879 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for tool call.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ToolCall} + */ +public final class ToolCall extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ToolCall) + ToolCallOrBuilder { + private static final long serialVersionUID = 0L; + // Use ToolCall.newBuilder() to construct. + private ToolCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToolCall() { + toolName_ = ""; + toolInput_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToolCall(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ToolCall.class, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder.class); + } + + private int bitField0_; + public static final int TOOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolName_ = ""; + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + @java.lang.Override + public boolean hasToolName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + @java.lang.Override + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + 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(); + toolName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_INPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolInput_ = ""; + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the toolInput field is set. + */ + @java.lang.Override + public boolean hasToolInput() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolInput. + */ + @java.lang.Override + public java.lang.String getToolInput() { + java.lang.Object ref = toolInput_; + 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(); + toolInput_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolInput. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolInputBytes() { + java.lang.Object ref = toolInput_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolInput_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, toolName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toolInput_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, toolName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toolInput_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ToolCall)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ToolCall other = + (com.google.cloud.aiplatform.v1beta1.ToolCall) obj; + + if (hasToolName() != other.hasToolName()) return false; + if (hasToolName()) { + if (!getToolName().equals(other.getToolName())) return false; + } + if (hasToolInput() != other.hasToolInput()) return false; + if (hasToolInput()) { + if (!getToolInput().equals(other.getToolInput())) 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 (hasToolName()) { + hash = (37 * hash) + TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolName().hashCode(); + } + if (hasToolInput()) { + hash = (37 * hash) + TOOL_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getToolInput().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.ToolCall 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for tool call.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ToolCall) + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ToolCall.class, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ToolCall.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolName_ = ""; + toolInput_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCall getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ToolCall.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCall build() { + com.google.cloud.aiplatform.v1beta1.ToolCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCall buildPartial() { + com.google.cloud.aiplatform.v1beta1.ToolCall result = + new com.google.cloud.aiplatform.v1beta1.ToolCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ToolCall result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolName_ = toolName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolInput_ = toolInput_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ToolCall) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ToolCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ToolCall other) { + if (other == com.google.cloud.aiplatform.v1beta1.ToolCall.getDefaultInstance()) return this; + if (other.hasToolName()) { + toolName_ = other.toolName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasToolInput()) { + toolInput_ = other.toolInput_; + bitField0_ |= 0x00000002; + 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: + { + toolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + toolInput_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 bitField0_; + + private java.lang.Object toolName_ = ""; + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + public boolean hasToolName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The toolName to set. + * @return This builder for chaining. + */ + public Builder setToolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearToolName() { + toolName_ = getDefaultInstance().getToolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for toolName to set. + * @return This builder for chaining. + */ + public Builder setToolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object toolInput_ = ""; + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the toolInput field is set. + */ + public boolean hasToolInput() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolInput. + */ + public java.lang.String getToolInput() { + java.lang.Object ref = toolInput_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolInput_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolInput. + */ + public com.google.protobuf.ByteString getToolInputBytes() { + java.lang.Object ref = toolInput_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolInput_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolInput to set. + * @return This builder for chaining. + */ + public Builder setToolInput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolInput_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolInput() { + toolInput_ = getDefaultInstance().getToolInput(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for toolInput to set. + * @return This builder for chaining. + */ + public Builder setToolInputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolInput_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ToolCall) + private static final com.google.cloud.aiplatform.v1beta1.ToolCall DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ToolCall(); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCall 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.aiplatform.v1beta1.ToolCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCallOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCallOrBuilder.java new file mode 100644 index 000000000000..c961858d08e5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCallOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface ToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + boolean hasToolName(); + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + java.lang.String getToolName(); + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + com.google.protobuf.ByteString getToolNameBytes(); + + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the toolInput field is set. + */ + boolean hasToolInput(); + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolInput. + */ + java.lang.String getToolInput(); + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolInput. + */ + com.google.protobuf.ByteString getToolInputBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpec.java index eb44dba6ef06..bb5c87e98060 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpec.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. Whether to use STRCIT string match on parameter values.
+   * Optional. Whether to use STRICT string match on parameter values.
    * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -428,7 +428,7 @@ public Builder mergeFrom( * * *
-     * Optional. Whether to use STRCIT string match on parameter values.
+     * Optional. Whether to use STRICT string match on parameter values.
      * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -443,7 +443,7 @@ public boolean getUseStrictStringMatch() { * * *
-     * Optional. Whether to use STRCIT string match on parameter values.
+     * Optional. Whether to use STRICT string match on parameter values.
      * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -462,7 +462,7 @@ public Builder setUseStrictStringMatch(boolean value) { * * *
-     * Optional. Whether to use STRCIT string match on parameter values.
+     * Optional. Whether to use STRICT string match on parameter values.
      * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpecOrBuilder.java index bb0f066a8513..94e50c3191bd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpecOrBuilder.java @@ -28,7 +28,7 @@ public interface ToolParameterKVMatchSpecOrBuilder * * *
-   * Optional. Whether to use STRCIT string match on parameter values.
+   * Optional. Whether to use STRICT string match on parameter values.
    * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trajectory.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trajectory.java new file mode 100644 index 000000000000..1c0709be225a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trajectory.java @@ -0,0 +1,982 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for trajectory.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Trajectory} + */ +public final class Trajectory extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Trajectory) + TrajectoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Trajectory.newBuilder() to construct. + private Trajectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Trajectory() { + toolCalls_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Trajectory(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Trajectory.class, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder.class); + } + + public static final int TOOL_CALLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List toolCalls_; + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getToolCallsList() { + return toolCalls_; + } + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getToolCallsOrBuilderList() { + return toolCalls_; + } + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getToolCallsCount() { + return toolCalls_.size(); + } + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCall getToolCalls(int index) { + return toolCalls_.get(index); + } + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder getToolCallsOrBuilder(int index) { + return toolCalls_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < toolCalls_.size(); i++) { + output.writeMessage(1, toolCalls_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < toolCalls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolCalls_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Trajectory)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Trajectory other = + (com.google.cloud.aiplatform.v1beta1.Trajectory) obj; + + if (!getToolCallsList().equals(other.getToolCallsList())) 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 (getToolCallsCount() > 0) { + hash = (37 * hash) + TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getToolCallsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Trajectory 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for trajectory.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Trajectory} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Trajectory) + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Trajectory.class, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Trajectory.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + } else { + toolCalls_ = null; + toolCallsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory build() { + com.google.cloud.aiplatform.v1beta1.Trajectory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory buildPartial() { + com.google.cloud.aiplatform.v1beta1.Trajectory result = + new com.google.cloud.aiplatform.v1beta1.Trajectory(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Trajectory result) { + if (toolCallsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = java.util.Collections.unmodifiableList(toolCalls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolCalls_ = toolCalls_; + } else { + result.toolCalls_ = toolCallsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Trajectory result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Trajectory) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Trajectory) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trajectory other) { + if (other == com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) return this; + if (toolCallsBuilder_ == null) { + if (!other.toolCalls_.isEmpty()) { + if (toolCalls_.isEmpty()) { + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolCallsIsMutable(); + toolCalls_.addAll(other.toolCalls_); + } + onChanged(); + } + } else { + if (!other.toolCalls_.isEmpty()) { + if (toolCallsBuilder_.isEmpty()) { + toolCallsBuilder_.dispose(); + toolCallsBuilder_ = null; + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + toolCallsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getToolCallsFieldBuilder() + : null; + } else { + toolCallsBuilder_.addAllMessages(other.toolCalls_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1beta1.ToolCall m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ToolCall.parser(), extensionRegistry); + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(m); + } else { + toolCallsBuilder_.addMessage(m); + } + 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 java.util.List toolCalls_ = + java.util.Collections.emptyList(); + + private void ensureToolCallsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = + new java.util.ArrayList(toolCalls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCall, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder> + toolCallsBuilder_; + + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getToolCallsList() { + if (toolCallsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolCalls_); + } else { + return toolCallsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getToolCallsCount() { + if (toolCallsBuilder_ == null) { + return toolCalls_.size(); + } else { + return toolCallsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCall getToolCalls(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolCalls(int index, com.google.cloud.aiplatform.v1beta1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.set(index, value); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolCalls( + int index, com.google.cloud.aiplatform.v1beta1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.set(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addToolCalls(com.google.cloud.aiplatform.v1beta1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addToolCalls(int index, com.google.cloud.aiplatform.v1beta1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(index, value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addToolCalls( + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addToolCalls( + int index, com.google.cloud.aiplatform.v1beta1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllToolCalls( + java.lang.Iterable values) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolCalls_); + onChanged(); + } else { + toolCallsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearToolCalls() { + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolCallsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeToolCalls(int index) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.remove(index); + onChanged(); + } else { + toolCallsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCall.Builder getToolCallsBuilder(int index) { + return getToolCallsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder getToolCallsOrBuilder(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getToolCallsOrBuilderList() { + if (toolCallsBuilder_ != null) { + return toolCallsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolCalls_); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCall.Builder addToolCallsBuilder() { + return getToolCallsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ToolCall.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCall.Builder addToolCallsBuilder(int index) { + return getToolCallsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.ToolCall.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getToolCallsBuilderList() { + return getToolCallsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCall, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder> + getToolCallsFieldBuilder() { + if (toolCallsBuilder_ == null) { + toolCallsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCall, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder>( + toolCalls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + toolCalls_ = null; + } + return toolCallsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Trajectory) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Trajectory) + private static final com.google.cloud.aiplatform.v1beta1.Trajectory DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Trajectory(); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Trajectory 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.aiplatform.v1beta1.Trajectory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInput.java new file mode 100644 index 000000000000..d31c8f26ec28 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInput.java @@ -0,0 +1,1335 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryAnyOrderMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput} + */ +public final class TrajectoryAnyOrderMatchInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + TrajectoryAnyOrderMatchInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchInput.newBuilder() to construct. + private TrajectoryAnyOrderMatchInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance getInstances( + int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance getInstances( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder> + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchInput 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.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInputOrBuilder.java new file mode 100644 index 000000000000..cd0b5af80b83 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInputOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstance.java new file mode 100644 index 000000000000..79fd81888ccd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstance.java @@ -0,0 +1,1064 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryAnyOrderMatch instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance} + */ +public final class TrajectoryAnyOrderMatchInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + TrajectoryAnyOrderMatchInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchInstance.newBuilder() to construct. + private TrajectoryAnyOrderMatchInstance( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryAnyOrderMatch instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .getDefaultInstance()) return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchInstance 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.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstanceOrBuilder.java new file mode 100644 index 000000000000..5b561314f9ce --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValue.java new file mode 100644 index 000000000000..107f09e82120 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValue.java @@ -0,0 +1,589 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryAnyOrderMatch metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue} + */ +public final class TrajectoryAnyOrderMatchMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + TrajectoryAnyOrderMatchMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchMetricValue.newBuilder() to construct. + private TrajectoryAnyOrderMatchMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * TrajectoryAnyOrderMatch metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchMetricValue 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.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValueOrBuilder.java new file mode 100644 index 000000000000..0bd00e9e9e2d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValueOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResults.java new file mode 100644 index 000000000000..fec21229e2fb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResults.java @@ -0,0 +1,1040 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryAnyOrderMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults} + */ +public final class TrajectoryAnyOrderMatchResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + TrajectoryAnyOrderMatchResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchResults.newBuilder() to construct. + private TrajectoryAnyOrderMatchResults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchResults() { + trajectoryAnyOrderMatchMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder.class); + } + + public static final int TRAJECTORY_ANY_ORDER_MATCH_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryAnyOrderMatchMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryAnyOrderMatchMetricValuesList() { + return trajectoryAnyOrderMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + getTrajectoryAnyOrderMatchMetricValuesOrBuilderList() { + return trajectoryAnyOrderMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryAnyOrderMatchMetricValuesCount() { + return trajectoryAnyOrderMatchMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getTrajectoryAnyOrderMatchMetricValues(int index) { + return trajectoryAnyOrderMatchMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder + getTrajectoryAnyOrderMatchMetricValuesOrBuilder(int index) { + return trajectoryAnyOrderMatchMetricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < trajectoryAnyOrderMatchMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryAnyOrderMatchMetricValues_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < trajectoryAnyOrderMatchMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryAnyOrderMatchMetricValues_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) obj; + + if (!getTrajectoryAnyOrderMatchMetricValuesList() + .equals(other.getTrajectoryAnyOrderMatchMetricValuesList())) 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 (getTrajectoryAnyOrderMatchMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_ANY_ORDER_MATCH_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryAnyOrderMatchMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Results for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + trajectoryAnyOrderMatchMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryAnyOrderMatchMetricValues_ = null; + trajectoryAnyOrderMatchMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults result) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryAnyOrderMatchMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryAnyOrderMatchMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryAnyOrderMatchMetricValues_ = trajectoryAnyOrderMatchMetricValues_; + } else { + result.trajectoryAnyOrderMatchMetricValues_ = + trajectoryAnyOrderMatchMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance()) return this; + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (!other.trajectoryAnyOrderMatchMetricValues_.isEmpty()) { + if (trajectoryAnyOrderMatchMetricValues_.isEmpty()) { + trajectoryAnyOrderMatchMetricValues_ = other.trajectoryAnyOrderMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.addAll(other.trajectoryAnyOrderMatchMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryAnyOrderMatchMetricValues_.isEmpty()) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_.isEmpty()) { + trajectoryAnyOrderMatchMetricValuesBuilder_.dispose(); + trajectoryAnyOrderMatchMetricValuesBuilder_ = null; + trajectoryAnyOrderMatchMetricValues_ = other.trajectoryAnyOrderMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryAnyOrderMatchMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryAnyOrderMatchMetricValuesFieldBuilder() + : null; + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addAllMessages( + other.trajectoryAnyOrderMatchMetricValues_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .parser(), + extensionRegistry); + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(m); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(m); + } + 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 java.util.List + trajectoryAnyOrderMatchMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryAnyOrderMatchMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryAnyOrderMatchMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue>( + trajectoryAnyOrderMatchMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + trajectoryAnyOrderMatchMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryAnyOrderMatchMetricValuesList() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryAnyOrderMatchMetricValues_); + } else { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryAnyOrderMatchMetricValuesCount() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + return trajectoryAnyOrderMatchMetricValues_.size(); + } else { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getTrajectoryAnyOrderMatchMetricValues(int index) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + return trajectoryAnyOrderMatchMetricValues_.get(index); + } else { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryAnyOrderMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue value) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryAnyOrderMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryAnyOrderMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue value) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(value); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryAnyOrderMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue value) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryAnyOrderMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryAnyOrderMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryAnyOrderMatchMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue> + values) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryAnyOrderMatchMetricValues_); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryAnyOrderMatchMetricValues() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + trajectoryAnyOrderMatchMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryAnyOrderMatchMetricValues(int index) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.remove(index); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + getTrajectoryAnyOrderMatchMetricValuesBuilder(int index) { + return getTrajectoryAnyOrderMatchMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder + getTrajectoryAnyOrderMatchMetricValuesOrBuilder(int index) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + return trajectoryAnyOrderMatchMetricValues_.get(index); + } else { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + getTrajectoryAnyOrderMatchMetricValuesOrBuilderList() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ != null) { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryAnyOrderMatchMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + addTrajectoryAnyOrderMatchMetricValuesBuilder() { + return getTrajectoryAnyOrderMatchMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + addTrajectoryAnyOrderMatchMetricValuesBuilder(int index) { + return getTrajectoryAnyOrderMatchMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder> + getTrajectoryAnyOrderMatchMetricValuesBuilderList() { + return getTrajectoryAnyOrderMatchMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + getTrajectoryAnyOrderMatchMetricValuesFieldBuilder() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + trajectoryAnyOrderMatchMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder>( + trajectoryAnyOrderMatchMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryAnyOrderMatchMetricValues_ = null; + } + return trajectoryAnyOrderMatchMetricValuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchResults 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.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResultsOrBuilder.java new file mode 100644 index 000000000000..6441d8dacccc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryAnyOrderMatchMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getTrajectoryAnyOrderMatchMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryAnyOrderMatchMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + getTrajectoryAnyOrderMatchMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder + getTrajectoryAnyOrderMatchMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpec.java new file mode 100644 index 000000000000..fc74b82b09a8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpec.java @@ -0,0 +1,443 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the
+ * reference trajectory appear in the predicted trajectory in any order, else
+ * 0.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec} + */ +public final class TrajectoryAnyOrderMatchSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + TrajectoryAnyOrderMatchSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchSpec.newBuilder() to construct. + private TrajectoryAnyOrderMatchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the
+   * reference trajectory appear in the predicted trajectory in any order, else
+   * 0.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance()) + return this; + 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; + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchSpec 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.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpecOrBuilder.java new file mode 100644 index 000000000000..9bf08b589d5c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInput.java new file mode 100644 index 000000000000..ad9b4a01b9c1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInput.java @@ -0,0 +1,1326 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryExactMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput} + */ +public final class TrajectoryExactMatchInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + TrajectoryExactMatchInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchInput.newBuilder() to construct. + private TrajectoryExactMatchInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryExactMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance getInstances( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchInput 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.aiplatform.v1beta1.TrajectoryExactMatchInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInputOrBuilder.java new file mode 100644 index 000000000000..f7d7e1e3236b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInputOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder getInstancesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstance.java new file mode 100644 index 000000000000..f687b9fbbdc1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstance.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryExactMatch instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance} + */ +public final class TrajectoryExactMatchInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + TrajectoryExactMatchInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchInstance.newBuilder() to construct. + private TrajectoryExactMatchInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryExactMatch instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.getDefaultInstance()) + return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchInstance 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.aiplatform.v1beta1.TrajectoryExactMatchInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstanceOrBuilder.java new file mode 100644 index 000000000000..9cc703f2ddc9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValue.java new file mode 100644 index 000000000000..b7b8bdae1aa4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValue.java @@ -0,0 +1,588 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryExactMatch metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue} + */ +public final class TrajectoryExactMatchMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + TrajectoryExactMatchMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchMetricValue.newBuilder() to construct. + private TrajectoryExactMatchMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryExactMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * TrajectoryExactMatch metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryExactMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchMetricValue 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.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValueOrBuilder.java new file mode 100644 index 000000000000..5fc52a11b605 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValueOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryExactMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryExactMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResults.java new file mode 100644 index 000000000000..383eec5e1028 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResults.java @@ -0,0 +1,1033 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryExactMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults} + */ +public final class TrajectoryExactMatchResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + TrajectoryExactMatchResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchResults.newBuilder() to construct. + private TrajectoryExactMatchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchResults() { + trajectoryExactMatchMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder.class); + } + + public static final int TRAJECTORY_EXACT_MATCH_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryExactMatchMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryExactMatchMetricValuesList() { + return trajectoryExactMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + getTrajectoryExactMatchMetricValuesOrBuilderList() { + return trajectoryExactMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryExactMatchMetricValuesCount() { + return trajectoryExactMatchMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getTrajectoryExactMatchMetricValues(int index) { + return trajectoryExactMatchMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder + getTrajectoryExactMatchMetricValuesOrBuilder(int index) { + return trajectoryExactMatchMetricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < trajectoryExactMatchMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryExactMatchMetricValues_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < trajectoryExactMatchMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryExactMatchMetricValues_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) obj; + + if (!getTrajectoryExactMatchMetricValuesList() + .equals(other.getTrajectoryExactMatchMetricValuesList())) 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 (getTrajectoryExactMatchMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_EXACT_MATCH_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryExactMatchMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Results for TrajectoryExactMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + trajectoryExactMatchMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryExactMatchMetricValues_ = null; + trajectoryExactMatchMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults result) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryExactMatchMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryExactMatchMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryExactMatchMetricValues_ = trajectoryExactMatchMetricValues_; + } else { + result.trajectoryExactMatchMetricValues_ = trajectoryExactMatchMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance()) + return this; + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (!other.trajectoryExactMatchMetricValues_.isEmpty()) { + if (trajectoryExactMatchMetricValues_.isEmpty()) { + trajectoryExactMatchMetricValues_ = other.trajectoryExactMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.addAll(other.trajectoryExactMatchMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryExactMatchMetricValues_.isEmpty()) { + if (trajectoryExactMatchMetricValuesBuilder_.isEmpty()) { + trajectoryExactMatchMetricValuesBuilder_.dispose(); + trajectoryExactMatchMetricValuesBuilder_ = null; + trajectoryExactMatchMetricValues_ = other.trajectoryExactMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryExactMatchMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryExactMatchMetricValuesFieldBuilder() + : null; + } else { + trajectoryExactMatchMetricValuesBuilder_.addAllMessages( + other.trajectoryExactMatchMetricValues_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .parser(), + extensionRegistry); + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(m); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(m); + } + 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 java.util.List + trajectoryExactMatchMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryExactMatchMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryExactMatchMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue>( + trajectoryExactMatchMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + trajectoryExactMatchMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryExactMatchMetricValuesList() { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryExactMatchMetricValues_); + } else { + return trajectoryExactMatchMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryExactMatchMetricValuesCount() { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + return trajectoryExactMatchMetricValues_.size(); + } else { + return trajectoryExactMatchMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getTrajectoryExactMatchMetricValues(int index) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + return trajectoryExactMatchMetricValues_.get(index); + } else { + return trajectoryExactMatchMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryExactMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue value) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryExactMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + builderForValue) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryExactMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue value) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(value); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryExactMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue value) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryExactMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + builderForValue) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryExactMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + builderForValue) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryExactMatchMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue> + values) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryExactMatchMetricValues_); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryExactMatchMetricValues() { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + trajectoryExactMatchMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryExactMatchMetricValues(int index) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.remove(index); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + getTrajectoryExactMatchMetricValuesBuilder(int index) { + return getTrajectoryExactMatchMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder + getTrajectoryExactMatchMetricValuesOrBuilder(int index) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + return trajectoryExactMatchMetricValues_.get(index); + } else { + return trajectoryExactMatchMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + getTrajectoryExactMatchMetricValuesOrBuilderList() { + if (trajectoryExactMatchMetricValuesBuilder_ != null) { + return trajectoryExactMatchMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryExactMatchMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + addTrajectoryExactMatchMetricValuesBuilder() { + return getTrajectoryExactMatchMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + addTrajectoryExactMatchMetricValuesBuilder(int index) { + return getTrajectoryExactMatchMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder> + getTrajectoryExactMatchMetricValuesBuilderList() { + return getTrajectoryExactMatchMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + getTrajectoryExactMatchMetricValuesFieldBuilder() { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + trajectoryExactMatchMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder>( + trajectoryExactMatchMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryExactMatchMetricValues_ = null; + } + return trajectoryExactMatchMetricValuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchResults 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.aiplatform.v1beta1.TrajectoryExactMatchResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResultsOrBuilder.java new file mode 100644 index 000000000000..15689fddd656 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryExactMatchMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getTrajectoryExactMatchMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryExactMatchMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + getTrajectoryExactMatchMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder + getTrajectoryExactMatchMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpec.java new file mode 100644 index 000000000000..caa69aed43ff --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpec.java @@ -0,0 +1,438 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the
+ * reference trajectory exactly match the predicted trajectory, else 0.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec} + */ +public final class TrajectoryExactMatchSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + TrajectoryExactMatchSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchSpec.newBuilder() to construct. + private TrajectoryExactMatchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the
+   * reference trajectory exactly match the predicted trajectory, else 0.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance()) + return this; + 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; + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchSpec 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.aiplatform.v1beta1.TrajectoryExactMatchSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpecOrBuilder.java new file mode 100644 index 000000000000..bd6b7b9e045c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInput.java new file mode 100644 index 000000000000..f2597a908f6f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInput.java @@ -0,0 +1,1334 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryInOrderMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput} + */ +public final class TrajectoryInOrderMatchInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + TrajectoryInOrderMatchInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchInput.newBuilder() to construct. + private TrajectoryInOrderMatchInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance getInstances( + int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance getInstances( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder> + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchInput 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.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInputOrBuilder.java new file mode 100644 index 000000000000..2ceb32555a90 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInputOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder getInstancesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstance.java new file mode 100644 index 000000000000..a60e21182a14 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstance.java @@ -0,0 +1,1064 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryInOrderMatch instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance} + */ +public final class TrajectoryInOrderMatchInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + TrajectoryInOrderMatchInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchInstance.newBuilder() to construct. + private TrajectoryInOrderMatchInstance( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryInOrderMatch instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + .getDefaultInstance()) return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchInstance 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.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstanceOrBuilder.java new file mode 100644 index 000000000000..1f6dd360cb45 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValue.java new file mode 100644 index 000000000000..59e89c474aa5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValue.java @@ -0,0 +1,588 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryInOrderMatch metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue} + */ +public final class TrajectoryInOrderMatchMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + TrajectoryInOrderMatchMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchMetricValue.newBuilder() to construct. + private TrajectoryInOrderMatchMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * TrajectoryInOrderMatch metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchMetricValue 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.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValueOrBuilder.java new file mode 100644 index 000000000000..75caa24c805d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValueOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResults.java new file mode 100644 index 000000000000..e1ac5640b6e7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResults.java @@ -0,0 +1,1037 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryInOrderMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults} + */ +public final class TrajectoryInOrderMatchResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + TrajectoryInOrderMatchResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchResults.newBuilder() to construct. + private TrajectoryInOrderMatchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchResults() { + trajectoryInOrderMatchMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder.class); + } + + public static final int TRAJECTORY_IN_ORDER_MATCH_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryInOrderMatchMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryInOrderMatchMetricValuesList() { + return trajectoryInOrderMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + getTrajectoryInOrderMatchMetricValuesOrBuilderList() { + return trajectoryInOrderMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryInOrderMatchMetricValuesCount() { + return trajectoryInOrderMatchMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getTrajectoryInOrderMatchMetricValues(int index) { + return trajectoryInOrderMatchMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder + getTrajectoryInOrderMatchMetricValuesOrBuilder(int index) { + return trajectoryInOrderMatchMetricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < trajectoryInOrderMatchMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryInOrderMatchMetricValues_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < trajectoryInOrderMatchMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryInOrderMatchMetricValues_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) obj; + + if (!getTrajectoryInOrderMatchMetricValuesList() + .equals(other.getTrajectoryInOrderMatchMetricValuesList())) 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 (getTrajectoryInOrderMatchMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_IN_ORDER_MATCH_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryInOrderMatchMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Results for TrajectoryInOrderMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + trajectoryInOrderMatchMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryInOrderMatchMetricValues_ = null; + trajectoryInOrderMatchMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults result) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryInOrderMatchMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryInOrderMatchMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryInOrderMatchMetricValues_ = trajectoryInOrderMatchMetricValues_; + } else { + result.trajectoryInOrderMatchMetricValues_ = + trajectoryInOrderMatchMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.getDefaultInstance()) + return this; + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (!other.trajectoryInOrderMatchMetricValues_.isEmpty()) { + if (trajectoryInOrderMatchMetricValues_.isEmpty()) { + trajectoryInOrderMatchMetricValues_ = other.trajectoryInOrderMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.addAll(other.trajectoryInOrderMatchMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryInOrderMatchMetricValues_.isEmpty()) { + if (trajectoryInOrderMatchMetricValuesBuilder_.isEmpty()) { + trajectoryInOrderMatchMetricValuesBuilder_.dispose(); + trajectoryInOrderMatchMetricValuesBuilder_ = null; + trajectoryInOrderMatchMetricValues_ = other.trajectoryInOrderMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryInOrderMatchMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryInOrderMatchMetricValuesFieldBuilder() + : null; + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addAllMessages( + other.trajectoryInOrderMatchMetricValues_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .parser(), + extensionRegistry); + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(m); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(m); + } + 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 java.util.List + trajectoryInOrderMatchMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryInOrderMatchMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryInOrderMatchMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue>( + trajectoryInOrderMatchMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + trajectoryInOrderMatchMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryInOrderMatchMetricValuesList() { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryInOrderMatchMetricValues_); + } else { + return trajectoryInOrderMatchMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryInOrderMatchMetricValuesCount() { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + return trajectoryInOrderMatchMetricValues_.size(); + } else { + return trajectoryInOrderMatchMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getTrajectoryInOrderMatchMetricValues(int index) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + return trajectoryInOrderMatchMetricValues_.get(index); + } else { + return trajectoryInOrderMatchMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryInOrderMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue value) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryInOrderMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryInOrderMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue value) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(value); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryInOrderMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue value) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryInOrderMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryInOrderMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryInOrderMatchMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue> + values) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryInOrderMatchMetricValues_); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryInOrderMatchMetricValues() { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + trajectoryInOrderMatchMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryInOrderMatchMetricValues(int index) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.remove(index); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + getTrajectoryInOrderMatchMetricValuesBuilder(int index) { + return getTrajectoryInOrderMatchMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder + getTrajectoryInOrderMatchMetricValuesOrBuilder(int index) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + return trajectoryInOrderMatchMetricValues_.get(index); + } else { + return trajectoryInOrderMatchMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + getTrajectoryInOrderMatchMetricValuesOrBuilderList() { + if (trajectoryInOrderMatchMetricValuesBuilder_ != null) { + return trajectoryInOrderMatchMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryInOrderMatchMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + addTrajectoryInOrderMatchMetricValuesBuilder() { + return getTrajectoryInOrderMatchMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + addTrajectoryInOrderMatchMetricValuesBuilder(int index) { + return getTrajectoryInOrderMatchMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder> + getTrajectoryInOrderMatchMetricValuesBuilderList() { + return getTrajectoryInOrderMatchMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + getTrajectoryInOrderMatchMetricValuesFieldBuilder() { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + trajectoryInOrderMatchMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder>( + trajectoryInOrderMatchMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryInOrderMatchMetricValues_ = null; + } + return trajectoryInOrderMatchMetricValuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchResults 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.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResultsOrBuilder.java new file mode 100644 index 000000000000..8571329d9207 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryInOrderMatchMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getTrajectoryInOrderMatchMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryInOrderMatchMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + getTrajectoryInOrderMatchMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder + getTrajectoryInOrderMatchMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpec.java new file mode 100644 index 000000000000..e5b3bb0a9763 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpec.java @@ -0,0 +1,442 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the
+ * reference trajectory appear in the predicted trajectory in the same order,
+ * else 0.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec} + */ +public final class TrajectoryInOrderMatchSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + TrajectoryInOrderMatchSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchSpec.newBuilder() to construct. + private TrajectoryInOrderMatchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the
+   * reference trajectory appear in the predicted trajectory in the same order,
+   * else 0.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance()) + return this; + 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; + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchSpec 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.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpecOrBuilder.java new file mode 100644 index 000000000000..2db6cfa72633 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryOrBuilder.java new file mode 100644 index 000000000000..76cf4ded33de --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Trajectory) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getToolCallsList(); + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolCall getToolCalls(int index); + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getToolCallsCount(); + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getToolCallsOrBuilderList(); + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder getToolCallsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInput.java new file mode 100644 index 000000000000..21f09ce3fab2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInput.java @@ -0,0 +1,1323 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryPrecision metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput} + */ +public final class TrajectoryPrecisionInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + TrajectoryPrecisionInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionInput.newBuilder() to construct. + private TrajectoryPrecisionInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryPrecision metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionInput 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.aiplatform.v1beta1.TrajectoryPrecisionInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInputOrBuilder.java new file mode 100644 index 000000000000..ab3c5bb08e6d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInputOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder getInstancesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstance.java new file mode 100644 index 000000000000..f918486eb4cd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstance.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryPrecision instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance} + */ +public final class TrajectoryPrecisionInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + TrajectoryPrecisionInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionInstance.newBuilder() to construct. + private TrajectoryPrecisionInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryPrecision instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.getDefaultInstance()) + return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionInstance 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.aiplatform.v1beta1.TrajectoryPrecisionInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstanceOrBuilder.java new file mode 100644 index 000000000000..86ce88cc588a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValue.java new file mode 100644 index 000000000000..a5490cf11287 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValue.java @@ -0,0 +1,588 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryPrecision metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue} + */ +public final class TrajectoryPrecisionMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + TrajectoryPrecisionMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionMetricValue.newBuilder() to construct. + private TrajectoryPrecisionMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryPrecision score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryPrecision score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * TrajectoryPrecision metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryPrecision score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryPrecision score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionMetricValue 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.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValueOrBuilder.java new file mode 100644 index 000000000000..1a883914be08 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValueOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryPrecision score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryPrecision score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResults.java new file mode 100644 index 000000000000..d12f410a2157 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResults.java @@ -0,0 +1,1031 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryPrecision metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults} + */ +public final class TrajectoryPrecisionResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + TrajectoryPrecisionResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionResults.newBuilder() to construct. + private TrajectoryPrecisionResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionResults() { + trajectoryPrecisionMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder.class); + } + + public static final int TRAJECTORY_PRECISION_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryPrecisionMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryPrecisionMetricValuesList() { + return trajectoryPrecisionMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + getTrajectoryPrecisionMetricValuesOrBuilderList() { + return trajectoryPrecisionMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryPrecisionMetricValuesCount() { + return trajectoryPrecisionMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getTrajectoryPrecisionMetricValues(int index) { + return trajectoryPrecisionMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder + getTrajectoryPrecisionMetricValuesOrBuilder(int index) { + return trajectoryPrecisionMetricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < trajectoryPrecisionMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryPrecisionMetricValues_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < trajectoryPrecisionMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryPrecisionMetricValues_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) obj; + + if (!getTrajectoryPrecisionMetricValuesList() + .equals(other.getTrajectoryPrecisionMetricValuesList())) 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 (getTrajectoryPrecisionMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_PRECISION_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryPrecisionMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Results for TrajectoryPrecision metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + trajectoryPrecisionMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryPrecisionMetricValues_ = null; + trajectoryPrecisionMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults result) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryPrecisionMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryPrecisionMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryPrecisionMetricValues_ = trajectoryPrecisionMetricValues_; + } else { + result.trajectoryPrecisionMetricValues_ = trajectoryPrecisionMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance()) + return this; + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (!other.trajectoryPrecisionMetricValues_.isEmpty()) { + if (trajectoryPrecisionMetricValues_.isEmpty()) { + trajectoryPrecisionMetricValues_ = other.trajectoryPrecisionMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.addAll(other.trajectoryPrecisionMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryPrecisionMetricValues_.isEmpty()) { + if (trajectoryPrecisionMetricValuesBuilder_.isEmpty()) { + trajectoryPrecisionMetricValuesBuilder_.dispose(); + trajectoryPrecisionMetricValuesBuilder_ = null; + trajectoryPrecisionMetricValues_ = other.trajectoryPrecisionMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryPrecisionMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryPrecisionMetricValuesFieldBuilder() + : null; + } else { + trajectoryPrecisionMetricValuesBuilder_.addAllMessages( + other.trajectoryPrecisionMetricValues_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.parser(), + extensionRegistry); + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(m); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(m); + } + 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 java.util.List + trajectoryPrecisionMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryPrecisionMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryPrecisionMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue>( + trajectoryPrecisionMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + trajectoryPrecisionMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryPrecisionMetricValuesList() { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryPrecisionMetricValues_); + } else { + return trajectoryPrecisionMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryPrecisionMetricValuesCount() { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + return trajectoryPrecisionMetricValues_.size(); + } else { + return trajectoryPrecisionMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getTrajectoryPrecisionMetricValues(int index) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + return trajectoryPrecisionMetricValues_.get(index); + } else { + return trajectoryPrecisionMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryPrecisionMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue value) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryPrecisionMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + builderForValue) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryPrecisionMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue value) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(value); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryPrecisionMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue value) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryPrecisionMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + builderForValue) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryPrecisionMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + builderForValue) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryPrecisionMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue> + values) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryPrecisionMetricValues_); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryPrecisionMetricValues() { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + trajectoryPrecisionMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryPrecisionMetricValues(int index) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.remove(index); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + getTrajectoryPrecisionMetricValuesBuilder(int index) { + return getTrajectoryPrecisionMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder + getTrajectoryPrecisionMetricValuesOrBuilder(int index) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + return trajectoryPrecisionMetricValues_.get(index); + } else { + return trajectoryPrecisionMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + getTrajectoryPrecisionMetricValuesOrBuilderList() { + if (trajectoryPrecisionMetricValuesBuilder_ != null) { + return trajectoryPrecisionMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryPrecisionMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + addTrajectoryPrecisionMetricValuesBuilder() { + return getTrajectoryPrecisionMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + addTrajectoryPrecisionMetricValuesBuilder(int index) { + return getTrajectoryPrecisionMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder> + getTrajectoryPrecisionMetricValuesBuilderList() { + return getTrajectoryPrecisionMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + getTrajectoryPrecisionMetricValuesFieldBuilder() { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + trajectoryPrecisionMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder>( + trajectoryPrecisionMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryPrecisionMetricValues_ = null; + } + return trajectoryPrecisionMetricValuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionResults 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.aiplatform.v1beta1.TrajectoryPrecisionResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResultsOrBuilder.java new file mode 100644 index 000000000000..a49f203cd90f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryPrecisionMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getTrajectoryPrecisionMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryPrecisionMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + getTrajectoryPrecisionMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder + getTrajectoryPrecisionMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpec.java new file mode 100644 index 000000000000..ec56955b0c31 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpec.java @@ -0,0 +1,435 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryPrecision metric - returns a float score based on average
+ * precision of individual tool calls.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec} + */ +public final class TrajectoryPrecisionSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + TrajectoryPrecisionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionSpec.newBuilder() to construct. + private TrajectoryPrecisionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryPrecision metric - returns a float score based on average
+   * precision of individual tool calls.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance()) + return this; + 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; + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionSpec 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.aiplatform.v1beta1.TrajectoryPrecisionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpecOrBuilder.java new file mode 100644 index 000000000000..1bba4b847395 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInput.java new file mode 100644 index 000000000000..d234fd066959 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInput.java @@ -0,0 +1,1313 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryRecall metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallInput} + */ +public final class TrajectoryRecallInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + TrajectoryRecallInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallInput.newBuilder() to construct. + private TrajectoryRecallInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryRecall metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput other) { + if (other == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList( + instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder getInstancesBuilder( + int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallInput 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.aiplatform.v1beta1.TrajectoryRecallInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInputOrBuilder.java new file mode 100644 index 000000000000..d33327825560 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInputOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder getInstancesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstance.java new file mode 100644 index 000000000000..f774bb5e4fb9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstance.java @@ -0,0 +1,1056 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryRecall instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance} + */ +public final class TrajectoryRecallInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + TrajectoryRecallInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallInstance.newBuilder() to construct. + private TrajectoryRecallInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryRecall instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.getDefaultInstance()) + return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallInstance 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.aiplatform.v1beta1.TrajectoryRecallInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstanceOrBuilder.java new file mode 100644 index 000000000000..2d86e281db6a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValue.java new file mode 100644 index 000000000000..616e9cca398e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValue.java @@ -0,0 +1,583 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryRecall metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue} + */ +public final class TrajectoryRecallMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + TrajectoryRecallMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallMetricValue.newBuilder() to construct. + private TrajectoryRecallMetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryRecall score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryRecall score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * TrajectoryRecall metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.getDefaultInstance()) + return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryRecall score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryRecall score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryRecall score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallMetricValue 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.aiplatform.v1beta1.TrajectoryRecallMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValueOrBuilder.java new file mode 100644 index 000000000000..9160116cf571 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValueOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryRecall score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryRecall score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResults.java new file mode 100644 index 000000000000..1dfb1510cad6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResults.java @@ -0,0 +1,1019 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryRecall metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallResults} + */ +public final class TrajectoryRecallResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + TrajectoryRecallResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallResults.newBuilder() to construct. + private TrajectoryRecallResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallResults() { + trajectoryRecallMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder.class); + } + + public static final int TRAJECTORY_RECALL_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryRecallMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryRecallMetricValuesList() { + return trajectoryRecallMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder> + getTrajectoryRecallMetricValuesOrBuilderList() { + return trajectoryRecallMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryRecallMetricValuesCount() { + return trajectoryRecallMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + getTrajectoryRecallMetricValues(int index) { + return trajectoryRecallMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder + getTrajectoryRecallMetricValuesOrBuilder(int index) { + return trajectoryRecallMetricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < trajectoryRecallMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryRecallMetricValues_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < trajectoryRecallMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryRecallMetricValues_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) obj; + + if (!getTrajectoryRecallMetricValuesList().equals(other.getTrajectoryRecallMetricValuesList())) + 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 (getTrajectoryRecallMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_RECALL_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryRecallMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Results for TrajectoryRecall metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryRecallMetricValuesBuilder_ == null) { + trajectoryRecallMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryRecallMetricValues_ = null; + trajectoryRecallMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults result) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryRecallMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryRecallMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryRecallMetricValues_ = trajectoryRecallMetricValues_; + } else { + result.trajectoryRecallMetricValues_ = trajectoryRecallMetricValuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults other) { + if (other == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance()) + return this; + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (!other.trajectoryRecallMetricValues_.isEmpty()) { + if (trajectoryRecallMetricValues_.isEmpty()) { + trajectoryRecallMetricValues_ = other.trajectoryRecallMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.addAll(other.trajectoryRecallMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryRecallMetricValues_.isEmpty()) { + if (trajectoryRecallMetricValuesBuilder_.isEmpty()) { + trajectoryRecallMetricValuesBuilder_.dispose(); + trajectoryRecallMetricValuesBuilder_ = null; + trajectoryRecallMetricValues_ = other.trajectoryRecallMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryRecallMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryRecallMetricValuesFieldBuilder() + : null; + } else { + trajectoryRecallMetricValuesBuilder_.addAllMessages( + other.trajectoryRecallMetricValues_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.parser(), + extensionRegistry); + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(m); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(m); + } + 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 java.util.List + trajectoryRecallMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryRecallMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryRecallMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue>( + trajectoryRecallMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder> + trajectoryRecallMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryRecallMetricValuesList() { + if (trajectoryRecallMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryRecallMetricValues_); + } else { + return trajectoryRecallMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryRecallMetricValuesCount() { + if (trajectoryRecallMetricValuesBuilder_ == null) { + return trajectoryRecallMetricValues_.size(); + } else { + return trajectoryRecallMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + getTrajectoryRecallMetricValues(int index) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + return trajectoryRecallMetricValues_.get(index); + } else { + return trajectoryRecallMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryRecallMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue value) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryRecallMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder builderForValue) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryRecallMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue value) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(value); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryRecallMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue value) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryRecallMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder builderForValue) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryRecallMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder builderForValue) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryRecallMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue> + values) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryRecallMetricValues_); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryRecallMetricValues() { + if (trajectoryRecallMetricValuesBuilder_ == null) { + trajectoryRecallMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryRecallMetricValues(int index) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.remove(index); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder + getTrajectoryRecallMetricValuesBuilder(int index) { + return getTrajectoryRecallMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder + getTrajectoryRecallMetricValuesOrBuilder(int index) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + return trajectoryRecallMetricValues_.get(index); + } else { + return trajectoryRecallMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder> + getTrajectoryRecallMetricValuesOrBuilderList() { + if (trajectoryRecallMetricValuesBuilder_ != null) { + return trajectoryRecallMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryRecallMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder + addTrajectoryRecallMetricValuesBuilder() { + return getTrajectoryRecallMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder + addTrajectoryRecallMetricValuesBuilder(int index) { + return getTrajectoryRecallMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryRecallMetricValuesBuilderList() { + return getTrajectoryRecallMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder> + getTrajectoryRecallMetricValuesFieldBuilder() { + if (trajectoryRecallMetricValuesBuilder_ == null) { + trajectoryRecallMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder>( + trajectoryRecallMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryRecallMetricValues_ = null; + } + return trajectoryRecallMetricValuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallResults 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.aiplatform.v1beta1.TrajectoryRecallResults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResultsOrBuilder.java new file mode 100644 index 000000000000..a798fa174f1f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResultsOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryRecallMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue getTrajectoryRecallMetricValues( + int index); + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryRecallMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryRecallMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder + getTrajectoryRecallMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpec.java new file mode 100644 index 000000000000..7d69ab60c07c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpec.java @@ -0,0 +1,435 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryRecall metric - returns a float score based on average
+ * recall of individual tool calls.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec} + */ +public final class TrajectoryRecallSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + TrajectoryRecallSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallSpec.newBuilder() to construct. + private TrajectoryRecallSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectoryRecall metric - returns a float score based on average
+   * recall of individual tool calls.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance()) + return this; + 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; + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallSpec 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.aiplatform.v1beta1.TrajectoryRecallSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpecOrBuilder.java new file mode 100644 index 000000000000..af590babce3a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInput.java new file mode 100644 index 000000000000..0d219b56c663 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInput.java @@ -0,0 +1,1335 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectorySingleToolUse metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput} + */ +public final class TrajectorySingleToolUseInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + TrajectorySingleToolUseInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseInput.newBuilder() to construct. + private TrajectorySingleToolUseInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance getInstances( + int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Instances and metric spec for TrajectorySingleToolUse metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + 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 bitField0_; + + private com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance getInstances( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder> + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseInput 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.aiplatform.v1beta1.TrajectorySingleToolUseInput + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInputOrBuilder.java new file mode 100644 index 000000000000..6ace30a13d39 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInputOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder + getInstancesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstance.java new file mode 100644 index 000000000000..7e457c6a97f3 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstance.java @@ -0,0 +1,765 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectorySingleToolUse instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance} + */ +public final class TrajectorySingleToolUseInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + TrajectorySingleToolUseInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseInstance.newBuilder() to construct. + private TrajectorySingleToolUseInstance( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPredictedTrajectory()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredictedTrajectory()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectorySingleToolUse instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .getDefaultInstance()) return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseInstance 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.aiplatform.v1beta1.TrajectorySingleToolUseInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstanceOrBuilder.java new file mode 100644 index 000000000000..110ddbee3139 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstanceOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValue.java new file mode 100644 index 000000000000..7297321bef8e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValue.java @@ -0,0 +1,589 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectorySingleToolUse metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue} + */ +public final class TrajectorySingleToolUseMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + TrajectorySingleToolUseMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseMetricValue.newBuilder() to construct. + private TrajectorySingleToolUseMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectorySingleToolUse score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * TrajectorySingleToolUse metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectorySingleToolUse score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseMetricValue 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.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValueOrBuilder.java new file mode 100644 index 000000000000..79e986fe221b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValueOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectorySingleToolUse score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResults.java new file mode 100644 index 000000000000..085bfcf4f2df --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResults.java @@ -0,0 +1,1040 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectorySingleToolUse metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults} + */ +public final class TrajectorySingleToolUseResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + TrajectorySingleToolUseResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseResults.newBuilder() to construct. + private TrajectorySingleToolUseResults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseResults() { + trajectorySingleToolUseMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder.class); + } + + public static final int TRAJECTORY_SINGLE_TOOL_USE_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectorySingleToolUseMetricValues_; + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectorySingleToolUseMetricValuesList() { + return trajectorySingleToolUseMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + getTrajectorySingleToolUseMetricValuesOrBuilderList() { + return trajectorySingleToolUseMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectorySingleToolUseMetricValuesCount() { + return trajectorySingleToolUseMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getTrajectorySingleToolUseMetricValues(int index) { + return trajectorySingleToolUseMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder + getTrajectorySingleToolUseMetricValuesOrBuilder(int index) { + return trajectorySingleToolUseMetricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < trajectorySingleToolUseMetricValues_.size(); i++) { + output.writeMessage(1, trajectorySingleToolUseMetricValues_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < trajectorySingleToolUseMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectorySingleToolUseMetricValues_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) obj; + + if (!getTrajectorySingleToolUseMetricValuesList() + .equals(other.getTrajectorySingleToolUseMetricValuesList())) 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 (getTrajectorySingleToolUseMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_SINGLE_TOOL_USE_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectorySingleToolUseMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Results for TrajectorySingleToolUse metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + trajectorySingleToolUseMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectorySingleToolUseMetricValues_ = null; + trajectorySingleToolUseMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults result) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectorySingleToolUseMetricValues_ = + java.util.Collections.unmodifiableList(trajectorySingleToolUseMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectorySingleToolUseMetricValues_ = trajectorySingleToolUseMetricValues_; + } else { + result.trajectorySingleToolUseMetricValues_ = + trajectorySingleToolUseMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance()) return this; + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (!other.trajectorySingleToolUseMetricValues_.isEmpty()) { + if (trajectorySingleToolUseMetricValues_.isEmpty()) { + trajectorySingleToolUseMetricValues_ = other.trajectorySingleToolUseMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.addAll(other.trajectorySingleToolUseMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectorySingleToolUseMetricValues_.isEmpty()) { + if (trajectorySingleToolUseMetricValuesBuilder_.isEmpty()) { + trajectorySingleToolUseMetricValuesBuilder_.dispose(); + trajectorySingleToolUseMetricValuesBuilder_ = null; + trajectorySingleToolUseMetricValues_ = other.trajectorySingleToolUseMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectorySingleToolUseMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectorySingleToolUseMetricValuesFieldBuilder() + : null; + } else { + trajectorySingleToolUseMetricValuesBuilder_.addAllMessages( + other.trajectorySingleToolUseMetricValues_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .parser(), + extensionRegistry); + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(m); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(m); + } + 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 java.util.List + trajectorySingleToolUseMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectorySingleToolUseMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectorySingleToolUseMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue>( + trajectorySingleToolUseMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + trajectorySingleToolUseMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectorySingleToolUseMetricValuesList() { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectorySingleToolUseMetricValues_); + } else { + return trajectorySingleToolUseMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectorySingleToolUseMetricValuesCount() { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + return trajectorySingleToolUseMetricValues_.size(); + } else { + return trajectorySingleToolUseMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getTrajectorySingleToolUseMetricValues(int index) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + return trajectorySingleToolUseMetricValues_.get(index); + } else { + return trajectorySingleToolUseMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectorySingleToolUseMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue value) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.set(index, value); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectorySingleToolUseMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + builderForValue) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectorySingleToolUseMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue value) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(value); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectorySingleToolUseMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue value) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(index, value); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectorySingleToolUseMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + builderForValue) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectorySingleToolUseMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + builderForValue) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectorySingleToolUseMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue> + values) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectorySingleToolUseMetricValues_); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectorySingleToolUseMetricValues() { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + trajectorySingleToolUseMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectorySingleToolUseMetricValues(int index) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.remove(index); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + getTrajectorySingleToolUseMetricValuesBuilder(int index) { + return getTrajectorySingleToolUseMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder + getTrajectorySingleToolUseMetricValuesOrBuilder(int index) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + return trajectorySingleToolUseMetricValues_.get(index); + } else { + return trajectorySingleToolUseMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + getTrajectorySingleToolUseMetricValuesOrBuilderList() { + if (trajectorySingleToolUseMetricValuesBuilder_ != null) { + return trajectorySingleToolUseMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectorySingleToolUseMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + addTrajectorySingleToolUseMetricValuesBuilder() { + return getTrajectorySingleToolUseMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + addTrajectorySingleToolUseMetricValuesBuilder(int index) { + return getTrajectorySingleToolUseMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder> + getTrajectorySingleToolUseMetricValuesBuilderList() { + return getTrajectorySingleToolUseMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + getTrajectorySingleToolUseMetricValuesFieldBuilder() { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + trajectorySingleToolUseMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder>( + trajectorySingleToolUseMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectorySingleToolUseMetricValues_ = null; + } + return trajectorySingleToolUseMetricValuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseResults 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.aiplatform.v1beta1.TrajectorySingleToolUseResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResultsOrBuilder.java new file mode 100644 index 000000000000..466ea3bc659b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectorySingleToolUseMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getTrajectorySingleToolUseMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectorySingleToolUseMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + getTrajectorySingleToolUseMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder + getTrajectorySingleToolUseMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpec.java new file mode 100644 index 000000000000..72ccc5888d7a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpec.java @@ -0,0 +1,673 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the
+ * predicted trajectory, else 0.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec} + */ +public final class TrajectorySingleToolUseSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + TrajectorySingleToolUseSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseSpec.newBuilder() to construct. + private TrajectorySingleToolUseSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseSpec() { + toolName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder.class); + } + + private int bitField0_; + public static final int TOOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolName_ = ""; + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + @java.lang.Override + public boolean hasToolName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + @java.lang.Override + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + 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(); + toolName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, toolName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, toolName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) obj; + + if (hasToolName() != other.hasToolName()) return false; + if (hasToolName()) { + if (!getToolName().equals(other.getToolName())) 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 (hasToolName()) { + hash = (37 * hash) + TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the
+   * predicted trajectory, else 0.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolName_ = toolName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance()) + return this; + if (other.hasToolName()) { + toolName_ = other.toolName_; + bitField0_ |= 0x00000001; + 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: + { + toolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 java.lang.Object toolName_ = ""; + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + public boolean hasToolName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The toolName to set. + * @return This builder for chaining. + */ + public Builder setToolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearToolName() { + toolName_ = getDefaultInstance().getToolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for toolName to set. + * @return This builder for chaining. + */ + public Builder setToolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseSpec 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.aiplatform.v1beta1.TrajectorySingleToolUseSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpecOrBuilder.java new file mode 100644 index 000000000000..70e9ff06d12a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpecOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 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! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + boolean hasToolName(); + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + java.lang.String getToolName(); + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + com.google.protobuf.ByteString getToolNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto index 3c32c1290d84..c79c4bb00799 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto @@ -139,6 +139,24 @@ message EvaluateInstancesRequest { // Input for tool parameter key value match metric. ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + + // Input for trajectory exact match metric. + TrajectoryExactMatchInput trajectory_exact_match_input = 33; + + // Input for trajectory in order match metric. + TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + + // Input for trajectory match any order metric. + TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + + // Input for trajectory precision metric. + TrajectoryPrecisionInput trajectory_precision_input = 37; + + // Input for trajectory recall metric. + TrajectoryRecallInput trajectory_recall_input = 38; + + // Input for trajectory single tool use metric. + TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; } // Required. The resource name of the Location to evaluate the instances. @@ -235,6 +253,24 @@ message EvaluateInstancesResponse { // Results for tool parameter key value match metric. ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + + // Result for trajectory exact match metric. + TrajectoryExactMatchResults trajectory_exact_match_results = 31; + + // Result for trajectory in order match metric. + TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + + // Result for trajectory any order match metric. + TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + + // Result for trajectory precision metric. + TrajectoryPrecisionResults trajectory_precision_results = 35; + + // Results for trajectory recall metric. + TrajectoryRecallResults trajectory_recall_results = 36; + + // Results for trajectory single tool use metric. + TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; } } @@ -1165,7 +1201,7 @@ message ToolParameterKVMatchInput { // Spec for tool parameter key value match metric. message ToolParameterKVMatchSpec { - // Optional. Whether to use STRCIT string match on parameter values. + // Optional. Whether to use STRICT string match on parameter values. bool use_strict_string_match = 1 [(google.api.field_behavior) = OPTIONAL]; } @@ -1191,3 +1227,256 @@ message ToolParameterKVMatchMetricValue { // Output only. Tool parameter key value match score. optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Instances and metric spec for TrajectoryExactMatch metric. +message TrajectoryExactMatchInput { + // Required. Spec for TrajectoryExactMatch metric. + TrajectoryExactMatchSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryExactMatch instance. + repeated TrajectoryExactMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the +// reference trajectory exactly match the predicted trajectory, else 0. +message TrajectoryExactMatchSpec {} + +// Spec for TrajectoryExactMatch instance. +message TrajectoryExactMatchInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryExactMatch metric. +message TrajectoryExactMatchResults { + // Output only. TrajectoryExactMatch metric values. + repeated TrajectoryExactMatchMetricValue + trajectory_exact_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryExactMatch metric value for an instance. +message TrajectoryExactMatchMetricValue { + // Output only. TrajectoryExactMatch score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectoryInOrderMatch metric. +message TrajectoryInOrderMatchInput { + // Required. Spec for TrajectoryInOrderMatch metric. + TrajectoryInOrderMatchSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryInOrderMatch instance. + repeated TrajectoryInOrderMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the +// reference trajectory appear in the predicted trajectory in the same order, +// else 0. +message TrajectoryInOrderMatchSpec {} + +// Spec for TrajectoryInOrderMatch instance. +message TrajectoryInOrderMatchInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryInOrderMatch metric. +message TrajectoryInOrderMatchResults { + // Output only. TrajectoryInOrderMatch metric values. + repeated TrajectoryInOrderMatchMetricValue + trajectory_in_order_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryInOrderMatch metric value for an instance. +message TrajectoryInOrderMatchMetricValue { + // Output only. TrajectoryInOrderMatch score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectoryAnyOrderMatch metric. +message TrajectoryAnyOrderMatchInput { + // Required. Spec for TrajectoryAnyOrderMatch metric. + TrajectoryAnyOrderMatchSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryAnyOrderMatch instance. + repeated TrajectoryAnyOrderMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the +// reference trajectory appear in the predicted trajectory in any order, else +// 0. +message TrajectoryAnyOrderMatchSpec {} + +// Spec for TrajectoryAnyOrderMatch instance. +message TrajectoryAnyOrderMatchInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryAnyOrderMatch metric. +message TrajectoryAnyOrderMatchResults { + // Output only. TrajectoryAnyOrderMatch metric values. + repeated TrajectoryAnyOrderMatchMetricValue + trajectory_any_order_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryAnyOrderMatch metric value for an instance. +message TrajectoryAnyOrderMatchMetricValue { + // Output only. TrajectoryAnyOrderMatch score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectoryPrecision metric. +message TrajectoryPrecisionInput { + // Required. Spec for TrajectoryPrecision metric. + TrajectoryPrecisionSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryPrecision instance. + repeated TrajectoryPrecisionInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryPrecision metric - returns a float score based on average +// precision of individual tool calls. +message TrajectoryPrecisionSpec {} + +// Spec for TrajectoryPrecision instance. +message TrajectoryPrecisionInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryPrecision metric. +message TrajectoryPrecisionResults { + // Output only. TrajectoryPrecision metric values. + repeated TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryPrecision metric value for an instance. +message TrajectoryPrecisionMetricValue { + // Output only. TrajectoryPrecision score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectoryRecall metric. +message TrajectoryRecallInput { + // Required. Spec for TrajectoryRecall metric. + TrajectoryRecallSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryRecall instance. + repeated TrajectoryRecallInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryRecall metric - returns a float score based on average +// recall of individual tool calls. +message TrajectoryRecallSpec {} + +// Spec for TrajectoryRecall instance. +message TrajectoryRecallInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryRecall metric. +message TrajectoryRecallResults { + // Output only. TrajectoryRecall metric values. + repeated TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryRecall metric value for an instance. +message TrajectoryRecallMetricValue { + // Output only. TrajectoryRecall score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectorySingleToolUse metric. +message TrajectorySingleToolUseInput { + // Required. Spec for TrajectorySingleToolUse metric. + TrajectorySingleToolUseSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectorySingleToolUse instance. + repeated TrajectorySingleToolUseInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the +// predicted trajectory, else 0. +message TrajectorySingleToolUseSpec { + // Required. Spec for tool name to be checked for in the predicted trajectory. + optional string tool_name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectorySingleToolUse instance. +message TrajectorySingleToolUseInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectorySingleToolUse metric. +message TrajectorySingleToolUseResults { + // Output only. TrajectorySingleToolUse metric values. + repeated TrajectorySingleToolUseMetricValue + trajectory_single_tool_use_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectorySingleToolUse metric value for an instance. +message TrajectorySingleToolUseMetricValue { + // Output only. TrajectorySingleToolUse score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Spec for trajectory. +message Trajectory { + // Required. Tool calls in the trajectory. + repeated ToolCall tool_calls = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for tool call. +message ToolCall { + // Required. Spec for tool name + optional string tool_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Spec for tool input + optional string tool_input = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto index 9ed515260c70..d543e0fadc8f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto @@ -20,6 +20,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; +import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/cloud/aiplatform/v1beta1/network_spec.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -70,6 +72,18 @@ message NotebookExecutionJob { bytes content = 1; } + // Compute configuration to use for an execution job. + message CustomEnvironmentSpec { + // The specification of a single machine for the execution job. + MachineSpec machine_spec = 1; + + // The specification of a persistent disk to attach for the execution job. + PersistentDiskSpec persistent_disk_spec = 2; + + // The network configuration to use for the execution job. + NetworkSpec network_spec = 3; + } + // The input notebook. oneof notebook_source { // The Dataform Repository pointing to a single file notebook repository. @@ -90,6 +104,9 @@ message NotebookExecutionJob { [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/NotebookRuntimeTemplate" }]; + + // The custom compute configuration for an execution job. + CustomEnvironmentSpec custom_environment_spec = 16; } // The location to store the notebook execution result. diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunning.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunning.java new file mode 100644 index 000000000000..c15716e345a6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunning.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateEndpointLongRunning { + + public static void main(String[] args) throws Exception { + asyncUpdateEndpointLongRunning(); + } + + public static void asyncUpdateEndpointLongRunning() 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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) { + UpdateEndpointLongRunningRequest request = + UpdateEndpointLongRunningRequest.newBuilder() + .setEndpoint(Endpoint.newBuilder().build()) + .build(); + ApiFuture future = + endpointServiceClient.updateEndpointLongRunningCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunningLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunningLRO.java new file mode 100644 index 000000000000..128bf973648a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunningLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata; + +public class AsyncUpdateEndpointLongRunningLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateEndpointLongRunningLRO(); + } + + public static void asyncUpdateEndpointLongRunningLRO() 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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) { + UpdateEndpointLongRunningRequest request = + UpdateEndpointLongRunningRequest.newBuilder() + .setEndpoint(Endpoint.newBuilder().build()) + .build(); + OperationFuture future = + endpointServiceClient.updateEndpointLongRunningOperationCallable().futureCall(request); + // Do something. + Endpoint response = future.get(); + } + } +} +// [END aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunning.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunning.java new file mode 100644 index 000000000000..6561cf45b1b1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunning.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_sync] +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; + +public class SyncUpdateEndpointLongRunning { + + public static void main(String[] args) throws Exception { + syncUpdateEndpointLongRunning(); + } + + public static void syncUpdateEndpointLongRunning() 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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) { + UpdateEndpointLongRunningRequest request = + UpdateEndpointLongRunningRequest.newBuilder() + .setEndpoint(Endpoint.newBuilder().build()) + .build(); + Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunningEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunningEndpoint.java new file mode 100644 index 000000000000..0fd97e239388 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunningEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_Endpoint_sync] +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; + +public class SyncUpdateEndpointLongRunningEndpoint { + + public static void main(String[] args) throws Exception { + syncUpdateEndpointLongRunningEndpoint(); + } + + public static void syncUpdateEndpointLongRunningEndpoint() 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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) { + Endpoint endpoint = Endpoint.newBuilder().build(); + Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(endpoint).get(); + } + } +} +// [END aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_Endpoint_sync] diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json index 9c26ea668d95..e67e89886cc9 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json +++ b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json @@ -512,6 +512,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.CryptoKeyConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.CryptoKeyConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.DeleteConnectionRequest", "queryAllDeclaredConstructors": true, @@ -818,6 +836,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitLabConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitLabConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.GitRepositoryLink", "queryAllDeclaredConstructors": true, @@ -989,6 +1061,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.ServiceDirectoryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.ServiceDirectoryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.UpdateConnectionRequest", "queryAllDeclaredConstructors": true, @@ -1007,6 +1097,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.UserCredential", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.UserCredential$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java index eda7969b3a91..85b59c8ad332 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java +++ b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java @@ -206,6 +206,7 @@ public void getConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -260,6 +261,7 @@ public void getConnectionTest2() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -314,6 +316,7 @@ public void createConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -378,6 +381,7 @@ public void createConnectionTest2() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -442,6 +446,7 @@ public void updateConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -464,6 +469,7 @@ public void updateConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -506,6 +512,7 @@ public void updateConnectionExceptionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateConnectionAsync(connection, updateMask).get(); @@ -621,6 +628,7 @@ public void createGitRepositoryLinkTest() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); Operation resultOperation = Operation.newBuilder() @@ -687,6 +695,7 @@ public void createGitRepositoryLinkTest2() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); Operation resultOperation = Operation.newBuilder() @@ -949,6 +958,7 @@ public void getGitRepositoryLinkTest() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); mockService.addResponse(expectedResponse); @@ -1009,6 +1019,7 @@ public void getGitRepositoryLinkTest2() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); mockService.addResponse(expectedResponse); diff --git a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java index 20e80d2af54a..81edb9369a73 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java +++ b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java @@ -201,6 +201,7 @@ public void getConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); mockDeveloperConnect.addResponse(expectedResponse); @@ -249,6 +250,7 @@ public void getConnectionTest2() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); mockDeveloperConnect.addResponse(expectedResponse); @@ -297,6 +299,7 @@ public void createConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -360,6 +363,7 @@ public void createConnectionTest2() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -423,6 +427,7 @@ public void updateConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -568,6 +573,7 @@ public void createGitRepositoryLinkTest() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); Operation resultOperation = Operation.newBuilder() @@ -634,6 +640,7 @@ public void createGitRepositoryLinkTest2() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); Operation resultOperation = Operation.newBuilder() @@ -880,6 +887,7 @@ public void getGitRepositoryLinkTest() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); mockDeveloperConnect.addResponse(expectedResponse); @@ -935,6 +943,7 @@ public void getGitRepositoryLinkTest2() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); mockDeveloperConnect.addResponse(expectedResponse); diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/Connection.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/Connection.java index 3c49dec16cdf..1f420169c5b4 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/Connection.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/Connection.java @@ -90,6 +90,9 @@ public enum ConnectionConfigCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GITHUB_CONFIG(5), + GITHUB_ENTERPRISE_CONFIG(13), + GITLAB_CONFIG(14), + GITLAB_ENTERPRISE_CONFIG(16), CONNECTIONCONFIG_NOT_SET(0); private final int value; @@ -110,6 +113,12 @@ public static ConnectionConfigCase forNumber(int value) { switch (value) { case 5: return GITHUB_CONFIG; + case 13: + return GITHUB_ENTERPRISE_CONFIG; + case 14: + return GITLAB_CONFIG; + case 16: + return GITLAB_ENTERPRISE_CONFIG; case 0: return CONNECTIONCONFIG_NOT_SET; default: @@ -177,6 +186,167 @@ public com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder getGithubConfi return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); } + public static final int GITHUB_ENTERPRISE_CONFIG_FIELD_NUMBER = 13; + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return Whether the githubEnterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasGithubEnterpriseConfig() { + return connectionConfigCase_ == 13; + } + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return The githubEnterpriseConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getGithubEnterpriseConfig() { + if (connectionConfigCase_ == 13) { + return (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder + getGithubEnterpriseConfigOrBuilder() { + if (connectionConfigCase_ == 13) { + return (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + + public static final int GITLAB_CONFIG_FIELD_NUMBER = 14; + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return Whether the gitlabConfig field is set. + */ + @java.lang.Override + public boolean hasGitlabConfig() { + return connectionConfigCase_ == 14; + } + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return The gitlabConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig getGitlabConfig() { + if (connectionConfigCase_ == 14) { + return (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder getGitlabConfigOrBuilder() { + if (connectionConfigCase_ == 14) { + return (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + + public static final int GITLAB_ENTERPRISE_CONFIG_FIELD_NUMBER = 16; + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return Whether the gitlabEnterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasGitlabEnterpriseConfig() { + return connectionConfigCase_ == 16; + } + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return The gitlabEnterpriseConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getGitlabEnterpriseConfig() { + if (connectionConfigCase_ == 16) { + return (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder + getGitlabEnterpriseConfigOrBuilder() { + if (connectionConfigCase_ == 16) { + return (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -794,6 +964,66 @@ public com.google.protobuf.ByteString getUidBytes() { } } + public static final int CRYPTO_KEY_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.developerconnect.v1.CryptoKeyConfig cryptoKeyConfig_; + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cryptoKeyConfig field is set. + */ + @java.lang.Override + public boolean hasCryptoKeyConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cryptoKeyConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfig getCryptoKeyConfig() { + return cryptoKeyConfig_ == null + ? com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance() + : cryptoKeyConfig_; + } + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder + getCryptoKeyConfigOrBuilder() { + return cryptoKeyConfig_ == null + ? com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance() + : cryptoKeyConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -842,6 +1072,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, uid_); } + if (connectionConfigCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_); + } + if (connectionConfigCase_ == 14) { + output.writeMessage( + 14, (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getCryptoKeyConfig()); + } + if (connectionConfigCase_ == 16) { + output.writeMessage( + 16, (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_); + } getUnknownFields().writeTo(output); } @@ -903,6 +1148,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, uid_); } + if (connectionConfigCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_); + } + if (connectionConfigCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCryptoKeyConfig()); + } + if (connectionConfigCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -942,11 +1205,24 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getUid().equals(other.getUid())) return false; + if (hasCryptoKeyConfig() != other.hasCryptoKeyConfig()) return false; + if (hasCryptoKeyConfig()) { + if (!getCryptoKeyConfig().equals(other.getCryptoKeyConfig())) return false; + } if (!getConnectionConfigCase().equals(other.getConnectionConfigCase())) return false; switch (connectionConfigCase_) { case 5: if (!getGithubConfig().equals(other.getGithubConfig())) return false; break; + case 13: + if (!getGithubEnterpriseConfig().equals(other.getGithubEnterpriseConfig())) return false; + break; + case 14: + if (!getGitlabConfig().equals(other.getGitlabConfig())) return false; + break; + case 16: + if (!getGitlabEnterpriseConfig().equals(other.getGitlabEnterpriseConfig())) return false; + break; case 0: default: } @@ -995,11 +1271,27 @@ public int hashCode() { hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); + if (hasCryptoKeyConfig()) { + hash = (37 * hash) + CRYPTO_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCryptoKeyConfig().hashCode(); + } switch (connectionConfigCase_) { case 5: hash = (37 * hash) + GITHUB_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGithubConfig().hashCode(); break; + case 13: + hash = (37 * hash) + GITHUB_ENTERPRISE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGithubEnterpriseConfig().hashCode(); + break; + case 14: + hash = (37 * hash) + GITLAB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGitlabConfig().hashCode(); + break; + case 16: + hash = (37 * hash) + GITLAB_ENTERPRISE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGitlabEnterpriseConfig().hashCode(); + break; case 0: default: } @@ -1173,6 +1465,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getDeleteTimeFieldBuilder(); getInstallationStateFieldBuilder(); + getCryptoKeyConfigFieldBuilder(); } } @@ -1183,6 +1476,15 @@ public Builder clear() { if (githubConfigBuilder_ != null) { githubConfigBuilder_.clear(); } + if (githubEnterpriseConfigBuilder_ != null) { + githubEnterpriseConfigBuilder_.clear(); + } + if (gitlabConfigBuilder_ != null) { + gitlabConfigBuilder_.clear(); + } + if (gitlabEnterpriseConfigBuilder_ != null) { + gitlabEnterpriseConfigBuilder_.clear(); + } name_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { @@ -1210,6 +1512,11 @@ public Builder clear() { internalGetMutableAnnotations().clear(); etag_ = ""; uid_ = ""; + cryptoKeyConfig_ = null; + if (cryptoKeyConfigBuilder_ != null) { + cryptoKeyConfigBuilder_.dispose(); + cryptoKeyConfigBuilder_ = null; + } connectionConfigCase_ = 0; connectionConfig_ = null; return this; @@ -1249,49 +1556,54 @@ public com.google.cloud.developerconnect.v1.Connection buildPartial() { private void buildPartial0(com.google.cloud.developerconnect.v1.Connection result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.installationState_ = installationStateBuilder_ == null ? installationState_ : installationStateBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.disabled_ = disabled_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.reconciling_ = reconciling_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.uid_ = uid_; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.cryptoKeyConfig_ = + cryptoKeyConfigBuilder_ == null ? cryptoKeyConfig_ : cryptoKeyConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -1301,6 +1613,15 @@ private void buildPartialOneofs(com.google.cloud.developerconnect.v1.Connection if (connectionConfigCase_ == 5 && githubConfigBuilder_ != null) { result.connectionConfig_ = githubConfigBuilder_.build(); } + if (connectionConfigCase_ == 13 && githubEnterpriseConfigBuilder_ != null) { + result.connectionConfig_ = githubEnterpriseConfigBuilder_.build(); + } + if (connectionConfigCase_ == 14 && gitlabConfigBuilder_ != null) { + result.connectionConfig_ = gitlabConfigBuilder_.build(); + } + if (connectionConfigCase_ == 16 && gitlabEnterpriseConfigBuilder_ != null) { + result.connectionConfig_ = gitlabEnterpriseConfigBuilder_.build(); + } } @java.lang.Override @@ -1351,7 +1672,7 @@ public Builder mergeFrom(com.google.cloud.developerconnect.v1.Connection other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCreateTime()) { @@ -1364,7 +1685,7 @@ public Builder mergeFrom(com.google.cloud.developerconnect.v1.Connection other) mergeDeleteTime(other.getDeleteTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; if (other.hasInstallationState()) { mergeInstallationState(other.getInstallationState()); } @@ -1375,23 +1696,41 @@ public Builder mergeFrom(com.google.cloud.developerconnect.v1.Connection other) setReconciling(other.getReconciling()); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); } + if (other.hasCryptoKeyConfig()) { + mergeCryptoKeyConfig(other.getCryptoKeyConfig()); + } switch (other.getConnectionConfigCase()) { case GITHUB_CONFIG: { mergeGithubConfig(other.getGithubConfig()); break; } + case GITHUB_ENTERPRISE_CONFIG: + { + mergeGithubEnterpriseConfig(other.getGithubEnterpriseConfig()); + break; + } + case GITLAB_CONFIG: + { + mergeGitlabConfig(other.getGitlabConfig()); + break; + } + case GITLAB_ENTERPRISE_CONFIG: + { + mergeGitlabEnterpriseConfig(other.getGitlabEnterpriseConfig()); + break; + } case CONNECTIONCONFIG_NOT_SET: { break; @@ -1426,19 +1765,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; break; } // case 18 case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -1450,7 +1789,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; break; } // case 34 case 42: @@ -1463,19 +1802,19 @@ public Builder mergeFrom( { input.readMessage( getInstallationStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; break; } // case 50 case 56: { disabled_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; break; } // case 56 case 64: { reconciling_ = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; break; } // case 64 case 74: @@ -1487,27 +1826,53 @@ public Builder mergeFrom( internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; break; } // case 74 case 82: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; break; } // case 82 case 90: { input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; break; } // case 90 case 98: { uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; break; } // case 98 + case 106: + { + input.readMessage( + getGithubEnterpriseConfigFieldBuilder().getBuilder(), extensionRegistry); + connectionConfigCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage(getGitlabConfigFieldBuilder().getBuilder(), extensionRegistry); + connectionConfigCase_ = 14; + break; + } // case 114 + case 122: + { + input.readMessage(getCryptoKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 130: + { + input.readMessage( + getGitlabEnterpriseConfigFieldBuilder().getBuilder(), extensionRegistry); + connectionConfigCase_ = 16; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1580,71 +1945,728 @@ public com.google.cloud.developerconnect.v1.GitHubConfig getGithubConfig() { } return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); } else { - if (connectionConfigCase_ == 5) { - return githubConfigBuilder_.getMessage(); + if (connectionConfigCase_ == 5) { + return githubConfigBuilder_.getMessage(); + } + return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public Builder setGithubConfig(com.google.cloud.developerconnect.v1.GitHubConfig value) { + if (githubConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionConfig_ = value; + onChanged(); + } else { + githubConfigBuilder_.setMessage(value); + } + connectionConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public Builder setGithubConfig( + com.google.cloud.developerconnect.v1.GitHubConfig.Builder builderForValue) { + if (githubConfigBuilder_ == null) { + connectionConfig_ = builderForValue.build(); + onChanged(); + } else { + githubConfigBuilder_.setMessage(builderForValue.build()); + } + connectionConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public Builder mergeGithubConfig(com.google.cloud.developerconnect.v1.GitHubConfig value) { + if (githubConfigBuilder_ == null) { + if (connectionConfigCase_ == 5 + && connectionConfig_ + != com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance()) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitHubConfig.newBuilder( + (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + connectionConfig_ = value; + } + onChanged(); + } else { + if (connectionConfigCase_ == 5) { + githubConfigBuilder_.mergeFrom(value); + } else { + githubConfigBuilder_.setMessage(value); + } + } + connectionConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public Builder clearGithubConfig() { + if (githubConfigBuilder_ == null) { + if (connectionConfigCase_ == 5) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + onChanged(); + } + } else { + if (connectionConfigCase_ == 5) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + } + githubConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public com.google.cloud.developerconnect.v1.GitHubConfig.Builder getGithubConfigBuilder() { + return getGithubConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder getGithubConfigOrBuilder() { + if ((connectionConfigCase_ == 5) && (githubConfigBuilder_ != null)) { + return githubConfigBuilder_.getMessageOrBuilder(); + } else { + if (connectionConfigCase_ == 5) { + return (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubConfig, + com.google.cloud.developerconnect.v1.GitHubConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder> + getGithubConfigFieldBuilder() { + if (githubConfigBuilder_ == null) { + if (!(connectionConfigCase_ == 5)) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + } + githubConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubConfig, + com.google.cloud.developerconnect.v1.GitHubConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder>( + (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_, + getParentForChildren(), + isClean()); + connectionConfig_ = null; + } + connectionConfigCase_ = 5; + onChanged(); + return githubConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder> + githubEnterpriseConfigBuilder_; + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return Whether the githubEnterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasGithubEnterpriseConfig() { + return connectionConfigCase_ == 13; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return The githubEnterpriseConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getGithubEnterpriseConfig() { + if (githubEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 13) { + return (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } else { + if (connectionConfigCase_ == 13) { + return githubEnterpriseConfigBuilder_.getMessage(); + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public Builder setGithubEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig value) { + if (githubEnterpriseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionConfig_ = value; + onChanged(); + } else { + githubEnterpriseConfigBuilder_.setMessage(value); + } + connectionConfigCase_ = 13; + return this; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public Builder setGithubEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder builderForValue) { + if (githubEnterpriseConfigBuilder_ == null) { + connectionConfig_ = builderForValue.build(); + onChanged(); + } else { + githubEnterpriseConfigBuilder_.setMessage(builderForValue.build()); + } + connectionConfigCase_ = 13; + return this; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public Builder mergeGithubEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig value) { + if (githubEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 13 + && connectionConfig_ + != com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig + .getDefaultInstance()) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.newBuilder( + (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + connectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + connectionConfig_ = value; + } + onChanged(); + } else { + if (connectionConfigCase_ == 13) { + githubEnterpriseConfigBuilder_.mergeFrom(value); + } else { + githubEnterpriseConfigBuilder_.setMessage(value); + } + } + connectionConfigCase_ = 13; + return this; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public Builder clearGithubEnterpriseConfig() { + if (githubEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 13) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + onChanged(); + } + } else { + if (connectionConfigCase_ == 13) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + } + githubEnterpriseConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder + getGithubEnterpriseConfigBuilder() { + return getGithubEnterpriseConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder + getGithubEnterpriseConfigOrBuilder() { + if ((connectionConfigCase_ == 13) && (githubEnterpriseConfigBuilder_ != null)) { + return githubEnterpriseConfigBuilder_.getMessageOrBuilder(); + } else { + if (connectionConfigCase_ == 13) { + return (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder> + getGithubEnterpriseConfigFieldBuilder() { + if (githubEnterpriseConfigBuilder_ == null) { + if (!(connectionConfigCase_ == 13)) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + githubEnterpriseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder>( + (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_, + getParentForChildren(), + isClean()); + connectionConfig_ = null; + } + connectionConfigCase_ = 13; + onChanged(); + return githubEnterpriseConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitLabConfig, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder> + gitlabConfigBuilder_; + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return Whether the gitlabConfig field is set. + */ + @java.lang.Override + public boolean hasGitlabConfig() { + return connectionConfigCase_ == 14; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return The gitlabConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig getGitlabConfig() { + if (gitlabConfigBuilder_ == null) { + if (connectionConfigCase_ == 14) { + return (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } else { + if (connectionConfigCase_ == 14) { + return gitlabConfigBuilder_.getMessage(); + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public Builder setGitlabConfig(com.google.cloud.developerconnect.v1.GitLabConfig value) { + if (gitlabConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionConfig_ = value; + onChanged(); + } else { + gitlabConfigBuilder_.setMessage(value); + } + connectionConfigCase_ = 14; + return this; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public Builder setGitlabConfig( + com.google.cloud.developerconnect.v1.GitLabConfig.Builder builderForValue) { + if (gitlabConfigBuilder_ == null) { + connectionConfig_ = builderForValue.build(); + onChanged(); + } else { + gitlabConfigBuilder_.setMessage(builderForValue.build()); + } + connectionConfigCase_ = 14; + return this; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public Builder mergeGitlabConfig(com.google.cloud.developerconnect.v1.GitLabConfig value) { + if (gitlabConfigBuilder_ == null) { + if (connectionConfigCase_ == 14 + && connectionConfig_ + != com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance()) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitLabConfig.newBuilder( + (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + connectionConfig_ = value; + } + onChanged(); + } else { + if (connectionConfigCase_ == 14) { + gitlabConfigBuilder_.mergeFrom(value); + } else { + gitlabConfigBuilder_.setMessage(value); + } + } + connectionConfigCase_ = 14; + return this; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public Builder clearGitlabConfig() { + if (gitlabConfigBuilder_ == null) { + if (connectionConfigCase_ == 14) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + onChanged(); + } + } else { + if (connectionConfigCase_ == 14) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + } + gitlabConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public com.google.cloud.developerconnect.v1.GitLabConfig.Builder getGitlabConfigBuilder() { + return getGitlabConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder getGitlabConfigOrBuilder() { + if ((connectionConfigCase_ == 14) && (gitlabConfigBuilder_ != null)) { + return gitlabConfigBuilder_.getMessageOrBuilder(); + } else { + if (connectionConfigCase_ == 14) { + return (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitLabConfig, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder> + getGitlabConfigFieldBuilder() { + if (gitlabConfigBuilder_ == null) { + if (!(connectionConfigCase_ == 14)) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + gitlabConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitLabConfig, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder>( + (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_, + getParentForChildren(), + isClean()); + connectionConfig_ = null; + } + connectionConfigCase_ = 14; + onChanged(); + return gitlabConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder> + gitlabEnterpriseConfigBuilder_; + /** + * + * + *
+     * Configuration for connections to an instance of GitLab Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return Whether the gitlabEnterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasGitlabEnterpriseConfig() { + return connectionConfigCase_ == 16; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitLab Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return The gitlabEnterpriseConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getGitlabEnterpriseConfig() { + if (gitlabEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 16) { + return (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); + } else { + if (connectionConfigCase_ == 16) { + return gitlabEnterpriseConfigBuilder_.getMessage(); } - return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); } } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public Builder setGithubConfig(com.google.cloud.developerconnect.v1.GitHubConfig value) { - if (githubConfigBuilder_ == null) { + public Builder setGitlabEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig value) { + if (gitlabEnterpriseConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connectionConfig_ = value; onChanged(); } else { - githubConfigBuilder_.setMessage(value); + gitlabEnterpriseConfigBuilder_.setMessage(value); } - connectionConfigCase_ = 5; + connectionConfigCase_ = 16; return this; } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public Builder setGithubConfig( - com.google.cloud.developerconnect.v1.GitHubConfig.Builder builderForValue) { - if (githubConfigBuilder_ == null) { + public Builder setGitlabEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder builderForValue) { + if (gitlabEnterpriseConfigBuilder_ == null) { connectionConfig_ = builderForValue.build(); onChanged(); } else { - githubConfigBuilder_.setMessage(builderForValue.build()); + gitlabEnterpriseConfigBuilder_.setMessage(builderForValue.build()); } - connectionConfigCase_ = 5; + connectionConfigCase_ = 16; return this; } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public Builder mergeGithubConfig(com.google.cloud.developerconnect.v1.GitHubConfig value) { - if (githubConfigBuilder_ == null) { - if (connectionConfigCase_ == 5 + public Builder mergeGitlabEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig value) { + if (gitlabEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 16 && connectionConfig_ - != com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance()) { + != com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig + .getDefaultInstance()) { connectionConfig_ = - com.google.cloud.developerconnect.v1.GitHubConfig.newBuilder( - (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_) + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.newBuilder( + (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + connectionConfig_) .mergeFrom(value) .buildPartial(); } else { @@ -1652,37 +2674,38 @@ public Builder mergeGithubConfig(com.google.cloud.developerconnect.v1.GitHubConf } onChanged(); } else { - if (connectionConfigCase_ == 5) { - githubConfigBuilder_.mergeFrom(value); + if (connectionConfigCase_ == 16) { + gitlabEnterpriseConfigBuilder_.mergeFrom(value); } else { - githubConfigBuilder_.setMessage(value); + gitlabEnterpriseConfigBuilder_.setMessage(value); } } - connectionConfigCase_ = 5; + connectionConfigCase_ = 16; return this; } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public Builder clearGithubConfig() { - if (githubConfigBuilder_ == null) { - if (connectionConfigCase_ == 5) { + public Builder clearGitlabEnterpriseConfig() { + if (gitlabEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 16) { connectionConfigCase_ = 0; connectionConfig_ = null; onChanged(); } } else { - if (connectionConfigCase_ == 5) { + if (connectionConfigCase_ == 16) { connectionConfigCase_ = 0; connectionConfig_ = null; } - githubConfigBuilder_.clear(); + gitlabEnterpriseConfigBuilder_.clear(); } return this; } @@ -1690,66 +2713,71 @@ public Builder clearGithubConfig() { * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public com.google.cloud.developerconnect.v1.GitHubConfig.Builder getGithubConfigBuilder() { - return getGithubConfigFieldBuilder().getBuilder(); + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder + getGitlabEnterpriseConfigBuilder() { + return getGitlabEnterpriseConfigFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ @java.lang.Override - public com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder getGithubConfigOrBuilder() { - if ((connectionConfigCase_ == 5) && (githubConfigBuilder_ != null)) { - return githubConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder + getGitlabEnterpriseConfigOrBuilder() { + if ((connectionConfigCase_ == 16) && (gitlabEnterpriseConfigBuilder_ != null)) { + return gitlabEnterpriseConfigBuilder_.getMessageOrBuilder(); } else { - if (connectionConfigCase_ == 5) { - return (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_; + if (connectionConfigCase_ == 16) { + return (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_; } - return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); } } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.developerconnect.v1.GitHubConfig, - com.google.cloud.developerconnect.v1.GitHubConfig.Builder, - com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder> - getGithubConfigFieldBuilder() { - if (githubConfigBuilder_ == null) { - if (!(connectionConfigCase_ == 5)) { + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder> + getGitlabEnterpriseConfigFieldBuilder() { + if (gitlabEnterpriseConfigBuilder_ == null) { + if (!(connectionConfigCase_ == 16)) { connectionConfig_ = - com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); } - githubConfigBuilder_ = + gitlabEnterpriseConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.developerconnect.v1.GitHubConfig, - com.google.cloud.developerconnect.v1.GitHubConfig.Builder, - com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder>( - (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder>( + (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_, getParentForChildren(), isClean()); connectionConfig_ = null; } - connectionConfigCase_ = 5; + connectionConfigCase_ = 16; onChanged(); - return githubConfigBuilder_; + return gitlabEnterpriseConfigBuilder_; } private java.lang.Object name_ = ""; @@ -1817,7 +2845,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1835,7 +2863,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1858,7 +2886,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1883,7 +2911,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1927,7 +2955,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1948,7 +2976,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1965,7 +2993,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000020) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -1976,7 +3004,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1993,7 +3021,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2014,7 +3042,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2086,7 +3114,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2130,7 +3158,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2151,7 +3179,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2168,7 +3196,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000040) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2179,7 +3207,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2196,7 +3224,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2217,7 +3245,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2289,7 +3317,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2333,7 +3361,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2354,7 +3382,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal } else { deleteTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2371,7 +3399,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000080) != 0) && deleteTime_ != null && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); @@ -2382,7 +3410,7 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { deleteTimeBuilder_.mergeFrom(value); } if (deleteTime_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2399,7 +3427,7 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { * */ public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); deleteTime_ = null; if (deleteTimeBuilder_ != null) { deleteTimeBuilder_.dispose(); @@ -2420,7 +3448,7 @@ public Builder clearDeleteTime() { * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } @@ -2489,7 +3517,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return labels_; } @@ -2574,7 +3602,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2597,7 +3625,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** @@ -2617,7 +3645,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; return this; } /** @@ -2631,7 +3659,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; return this; } @@ -2655,7 +3683,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the installationState field is set. */ public boolean hasInstallationState() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -2700,7 +3728,7 @@ public Builder setInstallationState( } else { installationStateBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2722,7 +3750,7 @@ public Builder setInstallationState( } else { installationStateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2740,7 +3768,7 @@ public Builder setInstallationState( public Builder mergeInstallationState( com.google.cloud.developerconnect.v1.InstallationState value) { if (installationStateBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000200) != 0) && installationState_ != null && installationState_ != com.google.cloud.developerconnect.v1.InstallationState.getDefaultInstance()) { @@ -2752,7 +3780,7 @@ public Builder mergeInstallationState( installationStateBuilder_.mergeFrom(value); } if (installationState_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -2769,7 +3797,7 @@ public Builder mergeInstallationState( * */ public Builder clearInstallationState() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); installationState_ = null; if (installationStateBuilder_ != null) { installationStateBuilder_.dispose(); @@ -2791,7 +3819,7 @@ public Builder clearInstallationState() { */ public com.google.cloud.developerconnect.v1.InstallationState.Builder getInstallationStateBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return getInstallationStateFieldBuilder().getBuilder(); } @@ -2879,7 +3907,7 @@ public boolean getDisabled() { public Builder setDisabled(boolean value) { disabled_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2897,7 +3925,7 @@ public Builder setDisabled(boolean value) { * @return This builder for chaining. */ public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); disabled_ = false; onChanged(); return this; @@ -2936,7 +3964,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2953,7 +3981,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); reconciling_ = false; onChanged(); return this; @@ -2979,7 +4007,7 @@ public Builder clearReconciling() { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; onChanged(); return annotations_; } @@ -3068,7 +4096,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -3092,7 +4120,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return internalGetMutableAnnotations().getMutableMap(); } /** @@ -3113,7 +4141,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return this; } /** @@ -3128,7 +4156,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return this; } @@ -3200,7 +4228,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3219,7 +4247,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -3243,7 +4271,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3319,7 +4347,7 @@ public Builder setUid(java.lang.String value) { throw new NullPointerException(); } uid_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3339,7 +4367,7 @@ public Builder setUid(java.lang.String value) { */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -3364,10 +4392,227 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uid_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.CryptoKeyConfig cryptoKeyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.CryptoKeyConfig, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder, + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder> + cryptoKeyConfigBuilder_; + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cryptoKeyConfig field is set. + */ + public boolean hasCryptoKeyConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cryptoKeyConfig. + */ + public com.google.cloud.developerconnect.v1.CryptoKeyConfig getCryptoKeyConfig() { + if (cryptoKeyConfigBuilder_ == null) { + return cryptoKeyConfig_ == null + ? com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance() + : cryptoKeyConfig_; + } else { + return cryptoKeyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCryptoKeyConfig(com.google.cloud.developerconnect.v1.CryptoKeyConfig value) { + if (cryptoKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cryptoKeyConfig_ = value; + } else { + cryptoKeyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCryptoKeyConfig( + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder builderForValue) { + if (cryptoKeyConfigBuilder_ == null) { + cryptoKeyConfig_ = builderForValue.build(); + } else { + cryptoKeyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCryptoKeyConfig( + com.google.cloud.developerconnect.v1.CryptoKeyConfig value) { + if (cryptoKeyConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && cryptoKeyConfig_ != null + && cryptoKeyConfig_ + != com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance()) { + getCryptoKeyConfigBuilder().mergeFrom(value); + } else { + cryptoKeyConfig_ = value; + } + } else { + cryptoKeyConfigBuilder_.mergeFrom(value); + } + if (cryptoKeyConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCryptoKeyConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + cryptoKeyConfig_ = null; + if (cryptoKeyConfigBuilder_ != null) { + cryptoKeyConfigBuilder_.dispose(); + cryptoKeyConfigBuilder_ = null; + } onChanged(); return this; } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder + getCryptoKeyConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getCryptoKeyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder + getCryptoKeyConfigOrBuilder() { + if (cryptoKeyConfigBuilder_ != null) { + return cryptoKeyConfigBuilder_.getMessageOrBuilder(); + } else { + return cryptoKeyConfig_ == null + ? com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance() + : cryptoKeyConfig_; + } + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.CryptoKeyConfig, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder, + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder> + getCryptoKeyConfigFieldBuilder() { + if (cryptoKeyConfigBuilder_ == null) { + cryptoKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.CryptoKeyConfig, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder, + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder>( + getCryptoKeyConfig(), getParentForChildren(), isClean()); + cryptoKeyConfig_ = null; + } + return cryptoKeyConfigBuilder_; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionOrBuilder.java index 4ffc433af00e..e478f0bb369e 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionOrBuilder.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionOrBuilder.java @@ -59,6 +59,119 @@ public interface ConnectionOrBuilder */ com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder getGithubConfigOrBuilder(); + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return Whether the githubEnterpriseConfig field is set. + */ + boolean hasGithubEnterpriseConfig(); + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return The githubEnterpriseConfig. + */ + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getGithubEnterpriseConfig(); + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder + getGithubEnterpriseConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return Whether the gitlabConfig field is set. + */ + boolean hasGitlabConfig(); + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return The gitlabConfig. + */ + com.google.cloud.developerconnect.v1.GitLabConfig getGitlabConfig(); + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder getGitlabConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return Whether the gitlabEnterpriseConfig field is set. + */ + boolean hasGitlabEnterpriseConfig(); + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return The gitlabEnterpriseConfig. + */ + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getGitlabEnterpriseConfig(); + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + */ + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder + getGitlabEnterpriseConfigOrBuilder(); + /** * * @@ -451,5 +564,49 @@ java.lang.String getAnnotationsOrDefault( */ com.google.protobuf.ByteString getUidBytes(); + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cryptoKeyConfig field is set. + */ + boolean hasCryptoKeyConfig(); + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cryptoKeyConfig. + */ + com.google.cloud.developerconnect.v1.CryptoKeyConfig getCryptoKeyConfig(); + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder getCryptoKeyConfigOrBuilder(); + com.google.cloud.developerconnect.v1.Connection.ConnectionConfigCase getConnectionConfigCase(); } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfig.java new file mode 100644 index 000000000000..a4d045534edf --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfig.java @@ -0,0 +1,655 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * The crypto key configuration. This field is used by the Customer-managed
+ * encryption keys (CMEK) feature.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.CryptoKeyConfig} + */ +public final class CryptoKeyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.CryptoKeyConfig) + CryptoKeyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CryptoKeyConfig.newBuilder() to construct. + private CryptoKeyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CryptoKeyConfig() { + keyReference_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CryptoKeyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.CryptoKeyConfig.class, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder.class); + } + + public static final int KEY_REFERENCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyReference_ = ""; + /** + * + * + *
+   * Required. The name of the key which is used to encrypt/decrypt customer
+   * data. For key in Cloud KMS, the key should be in the format of
+   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+   * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The keyReference. + */ + @java.lang.Override + public java.lang.String getKeyReference() { + java.lang.Object ref = keyReference_; + 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(); + keyReference_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the key which is used to encrypt/decrypt customer
+   * data. For key in Cloud KMS, the key should be in the format of
+   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+   * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for keyReference. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyReferenceBytes() { + java.lang.Object ref = keyReference_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyReference_ = 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.GeneratedMessageV3.isStringEmpty(keyReference_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyReference_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyReference_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyReference_); + } + 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.developerconnect.v1.CryptoKeyConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.CryptoKeyConfig other = + (com.google.cloud.developerconnect.v1.CryptoKeyConfig) obj; + + if (!getKeyReference().equals(other.getKeyReference())) 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) + KEY_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getKeyReference().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.developerconnect.v1.CryptoKeyConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The crypto key configuration. This field is used by the Customer-managed
+   * encryption keys (CMEK) feature.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.CryptoKeyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.CryptoKeyConfig) + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.CryptoKeyConfig.class, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.CryptoKeyConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyReference_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfig build() { + com.google.cloud.developerconnect.v1.CryptoKeyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfig buildPartial() { + com.google.cloud.developerconnect.v1.CryptoKeyConfig result = + new com.google.cloud.developerconnect.v1.CryptoKeyConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.CryptoKeyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyReference_ = keyReference_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.CryptoKeyConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.CryptoKeyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.CryptoKeyConfig other) { + if (other == com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance()) + return this; + if (!other.getKeyReference().isEmpty()) { + keyReference_ = other.keyReference_; + bitField0_ |= 0x00000001; + 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: + { + keyReference_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 java.lang.Object keyReference_ = ""; + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The keyReference. + */ + public java.lang.String getKeyReference() { + java.lang.Object ref = keyReference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyReference_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for keyReference. + */ + public com.google.protobuf.ByteString getKeyReferenceBytes() { + java.lang.Object ref = keyReference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyReference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The keyReference to set. + * @return This builder for chaining. + */ + public Builder setKeyReference(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyReference_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKeyReference() { + keyReference_ = getDefaultInstance().getKeyReference(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for keyReference to set. + * @return This builder for chaining. + */ + public Builder setKeyReferenceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyReference_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.CryptoKeyConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.CryptoKeyConfig) + private static final com.google.cloud.developerconnect.v1.CryptoKeyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.CryptoKeyConfig(); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfigOrBuilder.java new file mode 100644 index 000000000000..de1c8fe6985b --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfigOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface CryptoKeyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.CryptoKeyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the key which is used to encrypt/decrypt customer
+   * data. For key in Cloud KMS, the key should be in the format of
+   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+   * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The keyReference. + */ + java.lang.String getKeyReference(); + /** + * + * + *
+   * Required. The name of the key which is used to encrypt/decrypt customer
+   * data. For key in Cloud KMS, the key should be in the format of
+   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+   * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for keyReference. + */ + com.google.protobuf.ByteString getKeyReferenceBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java index aac50c9a8c5a..7fe3be242461 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_developerconnect_v1_Connection_AnnotationsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_Connection_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_InstallationState_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -48,10 +52,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_developerconnect_v1_GitHubConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_GitHubConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_OAuthCredential_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_OAuthCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_GitLabConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_UserCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_ListConnectionsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -178,262 +202,317 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/longrunning/operations.proto\032\033googl" + "e/protobuf/empty.proto\032 google/protobuf/" + "field_mask.proto\032\037google/protobuf/timest" - + "amp.proto\"\357\006\n\nConnection\022G\n\rgithub_confi" + + "amp.proto\"\307\t\n\nConnection\022G\n\rgithub_confi" + "g\030\005 \001(\0132..google.cloud.developerconnect." - + "v1.GitHubConfigH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013" - + "create_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030" - + "\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M" - + "\n\006labels\030\004 \003(\01328.google.cloud.developerc" - + "onnect.v1.Connection.LabelsEntryB\003\340A\001\022T\n" - + "\022installation_state\030\006 \001(\01323.google.cloud" - + ".developerconnect.v1.InstallationStateB\003" - + "\340A\003\022\025\n\010disabled\030\007 \001(\010B\003\340A\001\022\030\n\013reconcilin" - + "g\030\010 \001(\010B\003\340A\003\022W\n\013annotations\030\t \003(\0132=.goog" - + "le.cloud.developerconnect.v1.Connection." - + "AnnotationsEntryB\003\340A\001\022\021\n\004etag\030\n \001(\tB\003\340A\001" - + "\022\030\n\003uid\030\014 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Ann" - + "otationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:\216\001\352A\212\001\n*developerconnect.googleapi" - + "s.com/Connection\022@projects/{project}/loc" - + "ations/{location}/connections/{connectio" - + "n}*\013connections2\nconnectionR\001\001B\023\n\021connec" - + "tion_config\"\210\002\n\021InstallationState\022M\n\005sta" - + "ge\030\001 \001(\01629.google.cloud.developerconnect" - + ".v1.InstallationState.StageB\003\340A\003\022\024\n\007mess" - + "age\030\002 \001(\tB\003\340A\003\022\027\n\naction_uri\030\003 \001(\tB\003\340A\003\"" - + "u\n\005Stage\022\025\n\021STAGE_UNSPECIFIED\020\000\022\026\n\022PENDI" - + "NG_CREATE_APP\020\001\022\026\n\022PENDING_USER_OAUTH\020\002\022" - + "\027\n\023PENDING_INSTALL_APP\020\003\022\014\n\010COMPLETE\020\n\"\313" - + "\002\n\014GitHubConfig\022T\n\ngithub_app\030\001 \001(\01628.go" - + "ogle.cloud.developerconnect.v1.GitHubCon" - + "fig.GitHubAppB\006\340A\002\340A\005\022U\n\025authorizer_cred" - + "ential\030\002 \001(\01321.google.cloud.developercon" - + "nect.v1.OAuthCredentialB\003\340A\001\022 \n\023app_inst" - + "allation_id\030\003 \001(\003B\003\340A\001\022\035\n\020installation_u" - + "ri\030\004 \001(\tB\003\340A\003\"M\n\tGitHubApp\022\033\n\027GIT_HUB_AP" - + "P_UNSPECIFIED\020\000\022\025\n\021DEVELOPER_CONNECT\020\001\022\014" - + "\n\010FIREBASE\020\002\"\200\001\n\017OAuthCredential\022V\n\032oaut" - + "h_token_secret_version\030\001 \001(\tB2\340A\002\372A,\n*se" - + "cretmanager.googleapis.com/SecretVersion" - + "\022\025\n\010username\030\002 \001(\tB\003\340A\003\"\271\001\n\026ListConnecti" - + "onsRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*deve" - + "loperconnect.googleapis.com/Connection\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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\"\212\001\n\027ListConnectionsResponse\022" - + "A\n\013connections\030\001 \003(\0132,.google.cloud.deve" - + "loperconnect.v1.Connection\022\027\n\017next_page_" - + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"X\n\024GetC" - + "onnectionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*" - + "developerconnect.googleapis.com/Connecti" - + "on\"\375\001\n\027CreateConnectionRequest\022B\n\006parent" - + "\030\001 \001(\tB2\340A\002\372A,\022*developerconnect.googlea" - + "pis.com/Connection\022\032\n\rconnection_id\030\002 \001(" - + "\tB\003\340A\002\022E\n\nconnection\030\003 \001(\0132,.google.clou" - + "d.developerconnect.v1.ConnectionB\003\340A\002\022\037\n" - + "\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalida" - + "te_only\030\005 \001(\010B\003\340A\001\"\357\001\n\027UpdateConnectionR" - + "equest\0224\n\013update_mask\030\001 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\002\022E\n\nconnection\030\002 \001(\013" - + "2,.google.cloud.developerconnect.v1.Conn" - + "ectionB\003\340A\002\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327" - + "\010\002\010\001\022\032\n\rallow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvali" - + "date_only\030\005 \001(\010B\003\340A\001\"\253\001\n\027DeleteConnectio" - + "nRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*develope" - + "rconnect.googleapis.com/Connection\022\037\n\nre" - + "quest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_" - + "only\030\003 \001(\010B\003\340A\001\022\021\n\004etag\030\004 \001(\tB\003\340A\001\"\200\002\n\021O" - + "perationMetadata\0224\n\013create_time\030\001 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0221\n\010end_ti" - + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A" - + "\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026reques" - + "ted_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_versi" - + "on\030\007 \001(\tB\003\340A\003\"\217\006\n\021GitRepositoryLink\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\010\022\026\n\tclone_uri\030\002 \001(\tB\003\340A\002\0224" - + "\n\013create_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013delete_tim" - + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022T\n\006labels\030\006 \003(\0132?.google.cloud.develope" - + "rconnect.v1.GitRepositoryLink.LabelsEntr" - + "yB\003\340A\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001\022\030\n\013reconciling" - + "\030\010 \001(\010B\003\340A\003\022^\n\013annotations\030\t \003(\0132D.googl" - + "e.cloud.developerconnect.v1.GitRepositor" - + "yLink.AnnotationsEntryB\003\340A\001\022\030\n\003uid\030\n \001(\t" - + "B\013\340A\003\342\214\317\327\010\002\010\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\314\001\352A\310\001\n" + + "v1.GitHubConfigH\000\022\\\n\030github_enterprise_c" + + "onfig\030\r \001(\01328.google.cloud.developerconn" + + "ect.v1.GitHubEnterpriseConfigH\000\022G\n\rgitla" + + "b_config\030\016 \001(\0132..google.cloud.developerc" + + "onnect.v1.GitLabConfigH\000\022\\\n\030gitlab_enter" + + "prise_config\030\020 \001(\01328.google.cloud.develo" + + "perconnect.v1.GitLabEnterpriseConfigH\000\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013delete_time\030\013 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022M\n\006labels\030\004 \003(\01328.go" + + "ogle.cloud.developerconnect.v1.Connectio" + + "n.LabelsEntryB\003\340A\001\022T\n\022installation_state" + + "\030\006 \001(\01323.google.cloud.developerconnect.v" + + "1.InstallationStateB\003\340A\003\022\025\n\010disabled\030\007 \001" + + "(\010B\003\340A\001\022\030\n\013reconciling\030\010 \001(\010B\003\340A\003\022W\n\013ann" + + "otations\030\t \003(\0132=.google.cloud.developerc" + + "onnect.v1.Connection.AnnotationsEntryB\003\340" + + "A\001\022\021\n\004etag\030\n \001(\tB\003\340A\001\022\030\n\003uid\030\014 \001(\tB\013\340A\003\342" + + "\214\317\327\010\002\010\001\022Q\n\021crypto_key_config\030\017 \001(\01321.goo" + + "gle.cloud.developerconnect.v1.CryptoKeyC" + + "onfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\216\001\352A\212\001\n*de" + + "veloperconnect.googleapis.com/Connection" + + "\022@projects/{project}/locations/{location" + + "}/connections/{connection}*\013connections2" + + "\nconnectionR\001\001B\023\n\021connection_config\"S\n\017C" + + "ryptoKeyConfig\022@\n\rkey_reference\030\001 \001(\tB)\340" + + "A\002\372A#\n!cloudkms.googleapis.com/CryptoKey" + + "\"\210\002\n\021InstallationState\022M\n\005stage\030\001 \001(\01629." + + "google.cloud.developerconnect.v1.Install" + + "ationState.StageB\003\340A\003\022\024\n\007message\030\002 \001(\tB\003" + + "\340A\003\022\027\n\naction_uri\030\003 \001(\tB\003\340A\003\"u\n\005Stage\022\025\n" + + "\021STAGE_UNSPECIFIED\020\000\022\026\n\022PENDING_CREATE_A" + + "PP\020\001\022\026\n\022PENDING_USER_OAUTH\020\002\022\027\n\023PENDING_" + + "INSTALL_APP\020\003\022\014\n\010COMPLETE\020\n\"\313\002\n\014GitHubCo" + + "nfig\022T\n\ngithub_app\030\001 \001(\01628.google.cloud." + + "developerconnect.v1.GitHubConfig.GitHubA" + + "ppB\006\340A\002\340A\005\022U\n\025authorizer_credential\030\002 \001(" + + "\01321.google.cloud.developerconnect.v1.OAu" + + "thCredentialB\003\340A\001\022 \n\023app_installation_id" + + "\030\003 \001(\003B\003\340A\001\022\035\n\020installation_uri\030\004 \001(\tB\003\340" + + "A\003\"M\n\tGitHubApp\022\033\n\027GIT_HUB_APP_UNSPECIFI" + + "ED\020\000\022\025\n\021DEVELOPER_CONNECT\020\001\022\014\n\010FIREBASE\020" + + "\002\"\356\003\n\026GitHubEnterpriseConfig\022\025\n\010host_uri" + + "\030\001 \001(\tB\003\340A\002\022\023\n\006app_id\030\002 \001(\003B\003\340A\001\022\025\n\010app_" + + "slug\030\003 \001(\tB\003\340A\003\022V\n\032private_key_secret_ve" + + "rsion\030\004 \001(\tB2\340A\001\372A,\n*secretmanager.googl" + + "eapis.com/SecretVersion\022Y\n\035webhook_secre" + + "t_secret_version\030\005 \001(\tB2\340A\001\372A,\n*secretma" + + "nager.googleapis.com/SecretVersion\022 \n\023ap" + + "p_installation_id\030\010 \001(\003B\003\340A\001\022\035\n\020installa" + + "tion_uri\030\t \001(\tB\003\340A\003\022_\n\030service_directory" + + "_config\030\n \001(\01328.google.cloud.developerco" + + "nnect.v1.ServiceDirectoryConfigB\003\340A\001\022\033\n\016" + + "server_version\030\014 \001(\tB\003\340A\003\022\037\n\022ssl_ca_cert" + + "ificate\030\016 \001(\tB\003\340A\001\"Z\n\026ServiceDirectoryCo" + + "nfig\022@\n\007service\030\001 \001(\tB/\340A\002\372A)\n\'servicedi" + + "rectory.googleapis.com/Service\"\200\001\n\017OAuth" + + "Credential\022V\n\032oauth_token_secret_version" + + "\030\001 \001(\tB2\340A\002\372A,\n*secretmanager.googleapis" + + ".com/SecretVersion\022\025\n\010username\030\002 \001(\tB\003\340A" + + "\003\"\235\002\n\014GitLabConfig\022\\\n\035webhook_secret_sec" + + "ret_version\030\001 \001(\tB5\340A\002\340A\005\372A,\n*secretmana" + + "ger.googleapis.com/SecretVersion\022Y\n\032read" + + "_authorizer_credential\030\002 \001(\01320.google.cl" + + "oud.developerconnect.v1.UserCredentialB\003" + + "\340A\002\022T\n\025authorizer_credential\030\003 \001(\01320.goo" + + "gle.cloud.developerconnect.v1.UserCreden" + + "tialB\003\340A\002\"~\n\016UserCredential\022U\n\031user_toke" + + "n_secret_version\030\001 \001(\tB2\340A\002\372A,\n*secretma" + + "nager.googleapis.com/SecretVersion\022\025\n\010us" + + "ername\030\002 \001(\tB\003\340A\003\"\335\003\n\026GitLabEnterpriseCo" + + "nfig\022\025\n\010host_uri\030\001 \001(\tB\003\340A\002\022\\\n\035webhook_s" + + "ecret_secret_version\030\002 \001(\tB5\340A\002\340A\005\372A,\n*s" + + "ecretmanager.googleapis.com/SecretVersio" + + "n\022Y\n\032read_authorizer_credential\030\003 \001(\01320." + + "google.cloud.developerconnect.v1.UserCre" + + "dentialB\003\340A\002\022T\n\025authorizer_credential\030\004 " + + "\001(\01320.google.cloud.developerconnect.v1.U" + + "serCredentialB\003\340A\002\022_\n\030service_directory_" + + "config\030\005 \001(\01328.google.cloud.developercon" + + "nect.v1.ServiceDirectoryConfigB\003\340A\001\022\037\n\022s" + + "sl_ca_certificate\030\006 \001(\tB\003\340A\001\022\033\n\016server_v" + + "ersion\030\007 \001(\tB\003\340A\003\"\271\001\n\026ListConnectionsReq" + + "uest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*developerc" + + "onnect.googleapis.com/Connection\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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(\t" + + "B\003\340A\001\"\212\001\n\027ListConnectionsResponse\022A\n\013con" + + "nections\030\001 \003(\0132,.google.cloud.developerc" + + "onnect.v1.Connection\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"X\n\024GetConnect" + + "ionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*develo" + + "perconnect.googleapis.com/Connection\"\375\001\n" + + "\027CreateConnectionRequest\022B\n\006parent\030\001 \001(\t" + + "B2\340A\002\372A,\022*developerconnect.googleapis.co" + + "m/Connection\022\032\n\rconnection_id\030\002 \001(\tB\003\340A\002" + + "\022E\n\nconnection\030\003 \001(\0132,.google.cloud.deve" + + "loperconnect.v1.ConnectionB\003\340A\002\022\037\n\nreque" + + "st_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_onl" + + "y\030\005 \001(\010B\003\340A\001\"\357\001\n\027UpdateConnectionRequest" + + "\0224\n\013update_mask\030\001 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\022E\n\nconnection\030\002 \001(\0132,.goo" + + "gle.cloud.developerconnect.v1.Connection" + + "B\003\340A\002\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032" + + "\n\rallow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_o" + + "nly\030\005 \001(\010B\003\340A\001\"\253\001\n\027DeleteConnectionReque" + + "st\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*developerconne" + + "ct.googleapis.com/Connection\022\037\n\nrequest_" + + "id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_only\030\003" + + " \001(\010B\003\340A\001\022\021\n\004etag\030\004 \001(\tB\003\340A\001\"\200\002\n\021Operati" + + "onMetadata\0224\n\013create_time\030\001 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006t" + + "arget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016s" + + "tatus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_ca" + + "ncellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001" + + "(\tB\003\340A\003\"\250\006\n\021GitRepositoryLink\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\010\022\026\n\tclone_uri\030\002 \001(\tB\003\340A\002\0224\n\013crea" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\005 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n\006la" + + "bels\030\006 \003(\0132?.google.cloud.developerconne" + + "ct.v1.GitRepositoryLink.LabelsEntryB\003\340A\001" + + "\022\021\n\004etag\030\007 \001(\tB\003\340A\001\022\030\n\013reconciling\030\010 \001(\010" + + "B\003\340A\003\022^\n\013annotations\030\t \003(\0132D.google.clou" + + "d.developerconnect.v1.GitRepositoryLink." + + "AnnotationsEntryB\003\340A\001\022\030\n\003uid\030\n \001(\tB\013\340A\003\342" + + "\214\317\327\010\002\010\001\022\027\n\nwebhook_id\030\013 \001(\tB\003\340A\003\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" + + "2\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:\314\001\352A\310\001\n1developerconnect.goo" + + "gleapis.com/GitRepositoryLink\022iprojects/" + + "{project}/locations/{location}/connectio" + + "ns/{connection}/gitRepositoryLinks/{git_" + + "repository_link}*\022gitRepositoryLinks2\021gi" + + "tRepositoryLinkR\001\001\"\244\002\n\036CreateGitReposito" + + "ryLinkRequest\022I\n\006parent\030\001 \001(\tB9\340A\002\372A3\0221d" + + "eveloperconnect.googleapis.com/GitReposi" + + "toryLink\022U\n\023git_repository_link\030\002 \001(\01323." + + "google.cloud.developerconnect.v1.GitRepo" + + "sitoryLinkB\003\340A\002\022#\n\026git_repository_link_i" + + "d\030\003 \001(\tB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317" + + "\327\010\002\010\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\271\001\n\036De" + + "leteGitRepositoryLinkRequest\022G\n\004name\030\001 \001" + + "(\tB9\340A\002\372A3\n1developerconnect.googleapis." + + "com/GitRepositoryLink\022\037\n\nrequest_id\030\002 \001(" + + "\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_only\030\003 \001(\010B\003\340" + + "A\001\022\021\n\004etag\030\004 \001(\tB\003\340A\001\"\307\001\n\035ListGitReposit" + + "oryLinksRequest\022I\n\006parent\030\001 \001(\tB9\340A\002\372A3\022" + "1developerconnect.googleapis.com/GitRepo" - + "sitoryLink\022iprojects/{project}/locations" - + "/{location}/connections/{connection}/git" - + "RepositoryLinks/{git_repository_link}*\022g" - + "itRepositoryLinks2\021gitRepositoryLinkR\001\001\"" - + "\244\002\n\036CreateGitRepositoryLinkRequest\022I\n\006pa" - + "rent\030\001 \001(\tB9\340A\002\372A3\0221developerconnect.goo" - + "gleapis.com/GitRepositoryLink\022U\n\023git_rep" - + "ository_link\030\002 \001(\01323.google.cloud.develo" - + "perconnect.v1.GitRepositoryLinkB\003\340A\002\022#\n\026" - + "git_repository_link_id\030\003 \001(\tB\003\340A\002\022\037\n\nreq" - + "uest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_o" - + "nly\030\005 \001(\010B\003\340A\001\"\271\001\n\036DeleteGitRepositoryLi" - + "nkRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1develop" + + "sitoryLink\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" + + "ge_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\"\241\001\n\036ListGitRepos" + + "itoryLinksResponse\022Q\n\024git_repository_lin" + + "ks\030\001 \003(\01323.google.cloud.developerconnect" + + ".v1.GitRepositoryLink\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"f\n\033GetGitRep" + + "ositoryLinkRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3" + + "\n1developerconnect.googleapis.com/GitRep" + + "ositoryLink\"t\n\032FetchReadWriteTokenReques" + + "t\022V\n\023git_repository_link\030\001 \001(\tB9\340A\002\372A3\n1" + + "developerconnect.googleapis.com/GitRepos" + + "itoryLink\"o\n\025FetchReadTokenRequest\022V\n\023gi" + + "t_repository_link\030\001 \001(\tB9\340A\002\372A3\n1develop" + "erconnect.googleapis.com/GitRepositoryLi" - + "nk\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rv" - + "alidate_only\030\003 \001(\010B\003\340A\001\022\021\n\004etag\030\004 \001(\tB\003\340" - + "A\001\"\307\001\n\035ListGitRepositoryLinksRequest\022I\n\006" - + "parent\030\001 \001(\tB9\340A\002\372A3\0221developerconnect.g" - + "oogleapis.com/GitRepositoryLink\022\026\n\tpage_" + + "nk\"r\n\026FetchReadTokenResponse\022\r\n\005token\030\001 " + + "\001(\t\0223\n\017expiration_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\024\n\014git_username\030\003 \001(\t\"w" + + "\n\033FetchReadWriteTokenResponse\022\r\n\005token\030\001" + + " \001(\t\0223\n\017expiration_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\024\n\014git_username\030\003 \001(\t\"" + + "\236\001\n#FetchLinkableGitRepositoriesRequest\022" + + "F\n\nconnection\030\001 \001(\tB2\340A\002\372A,\n*developerco" + + "nnect.googleapis.com/Connection\022\026\n\tpage_" + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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\"\241\001\n\036ListGitRepositoryLinksResponse\022" - + "Q\n\024git_repository_links\030\001 \003(\01323.google.c" - + "loud.developerconnect.v1.GitRepositoryLi" - + "nk\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" - + "le\030\003 \003(\t\"f\n\033GetGitRepositoryLinkRequest\022" - + "G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1developerconnect." - + "googleapis.com/GitRepositoryLink\"t\n\032Fetc" - + "hReadWriteTokenRequest\022V\n\023git_repository" - + "_link\030\001 \001(\tB9\340A\002\372A3\n1developerconnect.go" - + "ogleapis.com/GitRepositoryLink\"o\n\025FetchR" - + "eadTokenRequest\022V\n\023git_repository_link\030\001" - + " \001(\tB9\340A\002\372A3\n1developerconnect.googleapi" - + "s.com/GitRepositoryLink\"r\n\026FetchReadToke" - + "nResponse\022\r\n\005token\030\001 \001(\t\0223\n\017expiration_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022\024\n" - + "\014git_username\030\003 \001(\t\"w\n\033FetchReadWriteTok" - + "enResponse\022\r\n\005token\030\001 \001(\t\0223\n\017expiration_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\024" - + "\n\014git_username\030\003 \001(\t\"\236\001\n#FetchLinkableGi" - + "tRepositoriesRequest\022F\n\nconnection\030\001 \001(\t" - + "B2\340A\002\372A,\n*developerconnect.googleapis.co" - + "m/Connection\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\"\233\001\n$FetchLinkableG" - + "itRepositoriesResponse\022Z\n\031linkable_git_r" - + "epositories\030\001 \003(\01327.google.cloud.develop" - + "erconnect.v1.LinkableGitRepository\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"*\n\025LinkableGitReposi" - + "tory\022\021\n\tclone_uri\030\001 \001(\t\"i\n\037FetchGitHubIn" - + "stallationsRequest\022F\n\nconnection\030\001 \001(\tB2" - + "\340A\002\372A,\n*developerconnect.googleapis.com/" - + "Connection\"\302\001\n FetchGitHubInstallationsR" - + "esponse\022f\n\rinstallations\030\001 \003(\0132O.google." - + "cloud.developerconnect.v1.FetchGitHubIns" - + "tallationsResponse.Installation\0326\n\014Insta" - + "llation\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004typ" - + "e\030\003 \001(\t\"\256\002\n\023FetchGitRefsRequest\022V\n\023git_r" - + "epository_link\030\001 \001(\tB9\340A\002\372A3\n1developerc" - + "onnect.googleapis.com/GitRepositoryLink\022" - + "T\n\010ref_type\030\002 \001(\0162=.google.cloud.develop" - + "erconnect.v1.FetchGitRefsRequest.RefType" - + "B\003\340A\002\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\005 \001(\tB\003\340A\001\"8\n\007RefType\022\030\n\024REF_TYPE_UN" - + "SPECIFIED\020\000\022\007\n\003TAG\020\001\022\n\n\006BRANCH\020\002\"B\n\024Fetc" - + "hGitRefsResponse\022\021\n\tref_names\030\001 \003(\t\022\027\n\017n" - + "ext_page_token\030\002 \001(\t2\247\034\n\020DeveloperConnec" - + "t\022\310\001\n\017ListConnections\0228.google.cloud.dev" - + "eloperconnect.v1.ListConnectionsRequest\032" - + "9.google.cloud.developerconnect.v1.ListC" - + "onnectionsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1" + + "\"\233\001\n$FetchLinkableGitRepositoriesRespons" + + "e\022Z\n\031linkable_git_repositories\030\001 \003(\01327.g" + + "oogle.cloud.developerconnect.v1.Linkable" + + "GitRepository\022\027\n\017next_page_token\030\002 \001(\t\"*" + + "\n\025LinkableGitRepository\022\021\n\tclone_uri\030\001 \001" + + "(\t\"i\n\037FetchGitHubInstallationsRequest\022F\n" + + "\nconnection\030\001 \001(\tB2\340A\002\372A,\n*developerconn" + + "ect.googleapis.com/Connection\"\302\001\n FetchG" + + "itHubInstallationsResponse\022f\n\rinstallati" + + "ons\030\001 \003(\0132O.google.cloud.developerconnec" + + "t.v1.FetchGitHubInstallationsResponse.In" + + "stallation\0326\n\014Installation\022\n\n\002id\030\001 \001(\003\022\014" + + "\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\"\256\002\n\023FetchGitR" + + "efsRequest\022V\n\023git_repository_link\030\001 \001(\tB" + + "9\340A\002\372A3\n1developerconnect.googleapis.com" + + "/GitRepositoryLink\022T\n\010ref_type\030\002 \001(\0162=.g" + + "oogle.cloud.developerconnect.v1.FetchGit" + + "RefsRequest.RefTypeB\003\340A\002\022\026\n\tpage_size\030\004 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\"8\n\007Ref" + + "Type\022\030\n\024REF_TYPE_UNSPECIFIED\020\000\022\007\n\003TAG\020\001\022" + + "\n\n\006BRANCH\020\002\"B\n\024FetchGitRefsResponse\022\021\n\tr" + + "ef_names\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2" + + "\247\034\n\020DeveloperConnect\022\310\001\n\017ListConnections" + + "\0228.google.cloud.developerconnect.v1.List" + + "ConnectionsRequest\0329.google.cloud.develo" + + "perconnect.v1.ListConnectionsResponse\"@\332" + + "A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/l" + + "ocations/*}/connections\022\265\001\n\rGetConnectio" + + "n\0226.google.cloud.developerconnect.v1.Get" + + "ConnectionRequest\032,.google.cloud.develop" + + "erconnect.v1.Connection\">\332A\004name\202\323\344\223\0021\022/" + + "/v1/{name=projects/*/locations/*/connect" + + "ions/*}\022\366\001\n\020CreateConnection\0229.google.cl" + + "oud.developerconnect.v1.CreateConnection" + + "Request\032\035.google.longrunning.Operation\"\207" + + "\001\312A\037\n\nConnection\022\021OperationMetadata\332A\037pa" + + "rent,connection,connection_id\202\323\344\223\002=\"//v1" + "/{parent=projects/*/locations/*}/connect" - + "ions\022\265\001\n\rGetConnection\0226.google.cloud.de" - + "veloperconnect.v1.GetConnectionRequest\032," - + ".google.cloud.developerconnect.v1.Connec" - + "tion\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/" - + "*/locations/*/connections/*}\022\366\001\n\020CreateC" - + "onnection\0229.google.cloud.developerconnec" - + "t.v1.CreateConnectionRequest\032\035.google.lo" - + "ngrunning.Operation\"\207\001\312A\037\n\nConnection\022\021O" - + "perationMetadata\332A\037parent,connection,con" - + "nection_id\202\323\344\223\002=\"//v1/{parent=projects/*" - + "/locations/*}/connections:\nconnection\022\370\001" - + "\n\020UpdateConnection\0229.google.cloud.develo" - + "perconnect.v1.UpdateConnectionRequest\032\035." - + "google.longrunning.Operation\"\211\001\312A\037\n\nConn" - + "ection\022\021OperationMetadata\332A\026connection,u" - + "pdate_mask\202\323\344\223\002H2:/v1/{connection.name=p" - + "rojects/*/locations/*/connections/*}:\nco" - + "nnection\022\331\001\n\020DeleteConnection\0229.google.c" - + "loud.developerconnect.v1.DeleteConnectio" - + "nRequest\032\035.google.longrunning.Operation\"" - + "k\312A*\n\025google.protobuf.Empty\022\021OperationMe" - + "tadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/" - + "*/locations/*/connections/*}\022\273\002\n\027CreateG" - + "itRepositoryLink\022@.google.cloud.develope" - + "rconnect.v1.CreateGitRepositoryLinkReque" - + "st\032\035.google.longrunning.Operation\"\276\001\312A&\n" - + "\021GitRepositoryLink\022\021OperationMetadata\332A1" - + "parent,git_repository_link,git_repositor" - + "y_link_id\202\323\344\223\002[\"D/v1/{parent=projects/*/" - + "locations/*/connections/*}/gitRepository" - + "Links:\023git_repository_link\022\375\001\n\027DeleteGit" - + "RepositoryLink\022@.google.cloud.developerc" - + "onnect.v1.DeleteGitRepositoryLinkRequest" - + "\032\035.google.longrunning.Operation\"\200\001\312A*\n\025g" - + "oogle.protobuf.Empty\022\021OperationMetadata\332" - + "A\004name\202\323\344\223\002F*D/v1/{name=projects/*/locat" - + "ions/*/connections/*/gitRepositoryLinks/" - + "*}\022\362\001\n\026ListGitRepositoryLinks\022?.google.c" - + "loud.developerconnect.v1.ListGitReposito" - + "ryLinksRequest\032@.google.cloud.developerc" - + "onnect.v1.ListGitRepositoryLinksResponse" - + "\"U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=projects/" - + "*/locations/*/connections/*}/gitReposito" - + "ryLinks\022\337\001\n\024GetGitRepositoryLink\022=.googl" - + "e.cloud.developerconnect.v1.GetGitReposi" - + "toryLinkRequest\0323.google.cloud.developer" - + "connect.v1.GitRepositoryLink\"S\332A\004name\202\323\344" - + "\223\002F\022D/v1/{name=projects/*/locations/*/co" - + "nnections/*/gitRepositoryLinks/*}\022\235\002\n\023Fe" - + "tchReadWriteToken\022<.google.cloud.develop" - + "erconnect.v1.FetchReadWriteTokenRequest\032" - + "=.google.cloud.developerconnect.v1.Fetch" - + "ReadWriteTokenResponse\"\210\001\332A\023git_reposito" - + "ry_link\202\323\344\223\002l\"g/v1/{git_repository_link=" - + "projects/*/locations/*/connections/*/git" - + "RepositoryLinks/*}:fetchReadWriteToken:\001" - + "*\022\211\002\n\016FetchReadToken\0227.google.cloud.deve" - + "loperconnect.v1.FetchReadTokenRequest\0328." - + "google.cloud.developerconnect.v1.FetchRe" - + "adTokenResponse\"\203\001\332A\023git_repository_link" - + "\202\323\344\223\002g\"b/v1/{git_repository_link=project" - + "s/*/locations/*/connections/*/gitReposit" - + "oryLinks/*}:fetchReadToken:\001*\022\226\002\n\034FetchL" - + "inkableGitRepositories\022E.google.cloud.de" - + "veloperconnect.v1.FetchLinkableGitReposi" - + "toriesRequest\032F.google.cloud.developerco" - + "nnect.v1.FetchLinkableGitRepositoriesRes" - + "ponse\"g\332A\nconnection\202\323\344\223\002T\022R/v1/{connect" - + "ion=projects/*/locations/*/connections/*" - + "}:fetchLinkableGitRepositories\022\206\002\n\030Fetch" - + "GitHubInstallations\022A.google.cloud.devel" - + "operconnect.v1.FetchGitHubInstallationsR" - + "equest\032B.google.cloud.developerconnect.v" - + "1.FetchGitHubInstallationsResponse\"c\332A\nc" - + "onnection\202\323\344\223\002P\022N/v1/{connection=project" - + "s/*/locations/*/connections/*}:fetchGitH" - + "ubInstallations\022\207\002\n\014FetchGitRefs\0225.googl" - + "e.cloud.developerconnect.v1.FetchGitRefs" - + "Request\0326.google.cloud.developerconnect." - + "v1.FetchGitRefsResponse\"\207\001\332A\034git_reposit" - + "ory_link,ref_type\202\323\344\223\002b\022`/v1/{git_reposi" - + "tory_link=projects/*/locations/*/connect" - + "ions/*/gitRepositoryLinks/*}:fetchGitRef" - + "s\032S\312A\037developerconnect.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\376\002\n$com.google.cloud.developercon" - + "nect.v1B\025DeveloperConnectProtoP\001ZPcloud." - + "google.com/go/developerconnect/apiv1/dev" - + "eloperconnectpb;developerconnectpb\242\002\020Dev" - + "eloperConnect\252\002 Google.Cloud.DeveloperCo" - + "nnect.V1\312\002 Google\\Cloud\\DeveloperConnect" - + "\\V1\352\002#Google::Cloud::DeveloperConnect::V" - + "1\352Ak\n*secretmanager.googleapis.com/Secre" - + "tVersion\022=projects/{project}/secrets/{se" - + "cret}/versions/{secret_version}b\006proto3" + + "ions:\nconnection\022\370\001\n\020UpdateConnection\0229." + + "google.cloud.developerconnect.v1.UpdateC" + + "onnectionRequest\032\035.google.longrunning.Op" + + "eration\"\211\001\312A\037\n\nConnection\022\021OperationMeta" + + "data\332A\026connection,update_mask\202\323\344\223\002H2:/v1" + + "/{connection.name=projects/*/locations/*" + + "/connections/*}:\nconnection\022\331\001\n\020DeleteCo" + + "nnection\0229.google.cloud.developerconnect" + + ".v1.DeleteConnectionRequest\032\035.google.lon" + + "grunning.Operation\"k\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0021*/" + + "/v1/{name=projects/*/locations/*/connect" + + "ions/*}\022\273\002\n\027CreateGitRepositoryLink\022@.go" + + "ogle.cloud.developerconnect.v1.CreateGit" + + "RepositoryLinkRequest\032\035.google.longrunni" + + "ng.Operation\"\276\001\312A&\n\021GitRepositoryLink\022\021O" + + "perationMetadata\332A1parent,git_repository" + + "_link,git_repository_link_id\202\323\344\223\002[\"D/v1/" + + "{parent=projects/*/locations/*/connectio" + + "ns/*}/gitRepositoryLinks:\023git_repository" + + "_link\022\375\001\n\027DeleteGitRepositoryLink\022@.goog" + + "le.cloud.developerconnect.v1.DeleteGitRe" + + "positoryLinkRequest\032\035.google.longrunning" + + ".Operation\"\200\001\312A*\n\025google.protobuf.Empty\022" + + "\021OperationMetadata\332A\004name\202\323\344\223\002F*D/v1/{na" + + "me=projects/*/locations/*/connections/*/" + + "gitRepositoryLinks/*}\022\362\001\n\026ListGitReposit" + + "oryLinks\022?.google.cloud.developerconnect" + + ".v1.ListGitRepositoryLinksRequest\032@.goog" + + "le.cloud.developerconnect.v1.ListGitRepo" + + "sitoryLinksResponse\"U\332A\006parent\202\323\344\223\002F\022D/v" + + "1/{parent=projects/*/locations/*/connect" + + "ions/*}/gitRepositoryLinks\022\337\001\n\024GetGitRep" + + "ositoryLink\022=.google.cloud.developerconn" + + "ect.v1.GetGitRepositoryLinkRequest\0323.goo" + + "gle.cloud.developerconnect.v1.GitReposit" + + "oryLink\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=projec" + + "ts/*/locations/*/connections/*/gitReposi" + + "toryLinks/*}\022\235\002\n\023FetchReadWriteToken\022<.g" + + "oogle.cloud.developerconnect.v1.FetchRea" + + "dWriteTokenRequest\032=.google.cloud.develo" + + "perconnect.v1.FetchReadWriteTokenRespons" + + "e\"\210\001\332A\023git_repository_link\202\323\344\223\002l\"g/v1/{g" + + "it_repository_link=projects/*/locations/" + + "*/connections/*/gitRepositoryLinks/*}:fe" + + "tchReadWriteToken:\001*\022\211\002\n\016FetchReadToken\022" + + "7.google.cloud.developerconnect.v1.Fetch" + + "ReadTokenRequest\0328.google.cloud.develope" + + "rconnect.v1.FetchReadTokenResponse\"\203\001\332A\023" + + "git_repository_link\202\323\344\223\002g\"b/v1/{git_repo" + + "sitory_link=projects/*/locations/*/conne" + + "ctions/*/gitRepositoryLinks/*}:fetchRead" + + "Token:\001*\022\226\002\n\034FetchLinkableGitRepositorie" + + "s\022E.google.cloud.developerconnect.v1.Fet" + + "chLinkableGitRepositoriesRequest\032F.googl" + + "e.cloud.developerconnect.v1.FetchLinkabl" + + "eGitRepositoriesResponse\"g\332A\nconnection\202" + + "\323\344\223\002T\022R/v1/{connection=projects/*/locati" + + "ons/*/connections/*}:fetchLinkableGitRep" + + "ositories\022\206\002\n\030FetchGitHubInstallations\022A" + + ".google.cloud.developerconnect.v1.FetchG" + + "itHubInstallationsRequest\032B.google.cloud" + + ".developerconnect.v1.FetchGitHubInstalla" + + "tionsResponse\"c\332A\nconnection\202\323\344\223\002P\022N/v1/" + + "{connection=projects/*/locations/*/conne" + + "ctions/*}:fetchGitHubInstallations\022\207\002\n\014F" + + "etchGitRefs\0225.google.cloud.developerconn" + + "ect.v1.FetchGitRefsRequest\0326.google.clou" + + "d.developerconnect.v1.FetchGitRefsRespon" + + "se\"\207\001\332A\034git_repository_link,ref_type\202\323\344\223" + + "\002b\022`/v1/{git_repository_link=projects/*/" + + "locations/*/connections/*/gitRepositoryL" + + "inks/*}:fetchGitRefs\032S\312A\037developerconnec" + + "t.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\370\004\n$com.google" + + ".cloud.developerconnect.v1B\025DeveloperCon" + + "nectProtoP\001ZPcloud.google.com/go/develop" + + "erconnect/apiv1/developerconnectpb;devel" + + "operconnectpb\242\002\020DeveloperConnect\252\002 Googl" + + "e.Cloud.DeveloperConnect.V1\312\002 Google\\Clo" + + "ud\\DeveloperConnect\\V1\352\002#Google::Cloud::" + + "DeveloperConnect::V1\352Ak\n*secretmanager.g" + + "oogleapis.com/SecretVersion\022=projects/{p" + + "roject}/secrets/{secret}/versions/{secre" + + "t_version}\352Ax\n!cloudkms.googleapis.com/C" + + "ryptoKey\022Sprojects/{project}/locations/{" + + "location}/keyRings/{key_ring}/cryptoKeys" + + "/{crypto_key}\352A|\n\'servicedirectory.googl" + + "eapis.com/Service\022Qprojects/{project}/lo" + + "cations/{location}/namespaces/{namespace" + + "}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -456,6 +535,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_developerconnect_v1_Connection_descriptor, new java.lang.String[] { "GithubConfig", + "GithubEnterpriseConfig", + "GitlabConfig", + "GitlabEnterpriseConfig", "Name", "CreateTime", "UpdateTime", @@ -467,6 +549,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Annotations", "Etag", "Uid", + "CryptoKeyConfig", "ConnectionConfig", }); internal_static_google_cloud_developerconnect_v1_Connection_LabelsEntry_descriptor = @@ -489,8 +572,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_developerconnect_v1_InstallationState_descriptor = + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor, + new java.lang.String[] { + "KeyReference", + }); + internal_static_google_cloud_developerconnect_v1_InstallationState_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_developerconnect_v1_InstallationState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_InstallationState_descriptor, @@ -498,23 +589,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Stage", "Message", "ActionUri", }); internal_static_google_cloud_developerconnect_v1_GitHubConfig_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_developerconnect_v1_GitHubConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_GitHubConfig_descriptor, new java.lang.String[] { "GithubApp", "AuthorizerCredential", "AppInstallationId", "InstallationUri", }); + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor, + new java.lang.String[] { + "HostUri", + "AppId", + "AppSlug", + "PrivateKeySecretVersion", + "WebhookSecretSecretVersion", + "AppInstallationId", + "InstallationUri", + "ServiceDirectoryConfig", + "ServerVersion", + "SslCaCertificate", + }); + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor, + new java.lang.String[] { + "Service", + }); internal_static_google_cloud_developerconnect_v1_OAuthCredential_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_developerconnect_v1_OAuthCredential_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_OAuthCredential_descriptor, new java.lang.String[] { "OauthTokenSecretVersion", "Username", }); + internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_developerconnect_v1_GitLabConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor, + new java.lang.String[] { + "WebhookSecretSecretVersion", "ReadAuthorizerCredential", "AuthorizerCredential", + }); + internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_developerconnect_v1_UserCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor, + new java.lang.String[] { + "UserTokenSecretVersion", "Username", + }); + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor, + new java.lang.String[] { + "HostUri", + "WebhookSecretSecretVersion", + "ReadAuthorizerCredential", + "AuthorizerCredential", + "ServiceDirectoryConfig", + "SslCaCertificate", + "ServerVersion", + }); internal_static_google_cloud_developerconnect_v1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_developerconnect_v1_ListConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_ListConnectionsRequest_descriptor, @@ -522,7 +668,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_developerconnect_v1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_developerconnect_v1_ListConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_ListConnectionsResponse_descriptor, @@ -530,7 +676,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_developerconnect_v1_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_developerconnect_v1_GetConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_GetConnectionRequest_descriptor, @@ -538,7 +684,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_developerconnect_v1_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_developerconnect_v1_CreateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_CreateConnectionRequest_descriptor, @@ -546,7 +692,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ConnectionId", "Connection", "RequestId", "ValidateOnly", }); internal_static_google_cloud_developerconnect_v1_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_developerconnect_v1_UpdateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_UpdateConnectionRequest_descriptor, @@ -554,7 +700,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Connection", "RequestId", "AllowMissing", "ValidateOnly", }); internal_static_google_cloud_developerconnect_v1_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_developerconnect_v1_DeleteConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_DeleteConnectionRequest_descriptor, @@ -562,7 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", "Etag", }); internal_static_google_cloud_developerconnect_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_developerconnect_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_OperationMetadata_descriptor, @@ -576,7 +722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_descriptor, @@ -591,6 +737,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reconciling", "Annotations", "Uid", + "WebhookId", }); internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_LabelsEntry_descriptor = internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_descriptor @@ -613,7 +760,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_developerconnect_v1_CreateGitRepositoryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_developerconnect_v1_CreateGitRepositoryLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_CreateGitRepositoryLinkRequest_descriptor, @@ -621,7 +768,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GitRepositoryLink", "GitRepositoryLinkId", "RequestId", "ValidateOnly", }); internal_static_google_cloud_developerconnect_v1_DeleteGitRepositoryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_developerconnect_v1_DeleteGitRepositoryLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_DeleteGitRepositoryLinkRequest_descriptor, @@ -629,7 +776,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", "Etag", }); internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksRequest_descriptor, @@ -637,7 +784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksResponse_descriptor, @@ -645,7 +792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GitRepositoryLinks", "NextPageToken", "Unreachable", }); internal_static_google_cloud_developerconnect_v1_GetGitRepositoryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_developerconnect_v1_GetGitRepositoryLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_GetGitRepositoryLinkRequest_descriptor, @@ -653,7 +800,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenRequest_descriptor, @@ -661,7 +808,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GitRepositoryLink", }); internal_static_google_cloud_developerconnect_v1_FetchReadTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_developerconnect_v1_FetchReadTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchReadTokenRequest_descriptor, @@ -669,7 +816,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GitRepositoryLink", }); internal_static_google_cloud_developerconnect_v1_FetchReadTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_developerconnect_v1_FetchReadTokenResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchReadTokenResponse_descriptor, @@ -677,7 +824,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Token", "ExpirationTime", "GitUsername", }); internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenResponse_descriptor, @@ -685,7 +832,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Token", "ExpirationTime", "GitUsername", }); internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesRequest_descriptor, @@ -693,7 +840,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connection", "PageSize", "PageToken", }); internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesResponse_descriptor, @@ -701,7 +848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LinkableGitRepositories", "NextPageToken", }); internal_static_google_cloud_developerconnect_v1_LinkableGitRepository_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_developerconnect_v1_LinkableGitRepository_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_LinkableGitRepository_descriptor, @@ -709,7 +856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloneUri", }); internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsRequest_descriptor, @@ -717,7 +864,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connection", }); internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsResponse_descriptor, @@ -735,7 +882,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Name", "Type", }); internal_static_google_cloud_developerconnect_v1_FetchGitRefsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_developerconnect_v1_FetchGitRefsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchGitRefsRequest_descriptor, @@ -743,7 +890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GitRepositoryLink", "RefType", "PageSize", "PageToken", }); internal_static_google_cloud_developerconnect_v1_FetchGitRefsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_developerconnect_v1_FetchGitRefsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchGitRefsResponse_descriptor, diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfig.java new file mode 100644 index 000000000000..624d57d13a64 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfig.java @@ -0,0 +1,2319 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Configuration for connections to an instance of GitHub Enterprise.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitHubEnterpriseConfig} + */ +public final class GitHubEnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + GitHubEnterpriseConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitHubEnterpriseConfig.newBuilder() to construct. + private GitHubEnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitHubEnterpriseConfig() { + hostUri_ = ""; + appSlug_ = ""; + privateKeySecretVersion_ = ""; + webhookSecretSecretVersion_ = ""; + installationUri_ = ""; + serverVersion_ = ""; + sslCaCertificate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitHubEnterpriseConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.class, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder.class); + } + + private int bitField0_; + public static final int HOST_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostUri_ = ""; + /** + * + * + *
+   * Required. The URI of the GitHub Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + @java.lang.Override + public java.lang.String getHostUri() { + java.lang.Object ref = hostUri_; + 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(); + hostUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The URI of the GitHub Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostUriBytes() { + java.lang.Object ref = hostUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_ID_FIELD_NUMBER = 2; + private long appId_ = 0L; + /** + * + * + *
+   * Optional. ID of the GitHub App created from the manifest.
+   * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + @java.lang.Override + public long getAppId() { + return appId_; + } + + public static final int APP_SLUG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object appSlug_ = ""; + /** + * + * + *
+   * Output only. The URL-friendly name of the GitHub App.
+   * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The appSlug. + */ + @java.lang.Override + public java.lang.String getAppSlug() { + java.lang.Object ref = appSlug_; + 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(); + appSlug_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URL-friendly name of the GitHub App.
+   * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for appSlug. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppSlugBytes() { + java.lang.Object ref = appSlug_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appSlug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_KEY_SECRET_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateKeySecretVersion_ = ""; + /** + * + * + *
+   * Optional. SecretManager resource containing the private key of the GitHub
+   * App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKeySecretVersion. + */ + @java.lang.Override + public java.lang.String getPrivateKeySecretVersion() { + java.lang.Object ref = privateKeySecretVersion_; + 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(); + privateKeySecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. SecretManager resource containing the private key of the GitHub
+   * App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKeySecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateKeySecretVersionBytes() { + java.lang.Object ref = privateKeySecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+   * Optional. SecretManager resource containing the webhook secret of the
+   * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + @java.lang.Override + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + 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(); + webhookSecretSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. SecretManager resource containing the webhook secret of the
+   * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_INSTALLATION_ID_FIELD_NUMBER = 8; + private long appInstallationId_ = 0L; + /** + * + * + *
+   * Optional. ID of the installation of the GitHub App.
+   * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appInstallationId. + */ + @java.lang.Override + public long getAppInstallationId() { + return appInstallationId_; + } + + public static final int INSTALLATION_URI_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object installationUri_ = ""; + /** + * + * + *
+   * Output only. The URI to navigate to in order to manage the installation
+   * associated with this GitHubEnterpriseConfig.
+   * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The installationUri. + */ + @java.lang.Override + public java.lang.String getInstallationUri() { + java.lang.Object ref = installationUri_; + 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(); + installationUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URI to navigate to in order to manage the installation
+   * associated with this GitHubEnterpriseConfig.
+   * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for installationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstallationUriBytes() { + java.lang.Object ref = installationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + installationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.developerconnect.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + public static final int SERVER_VERSION_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverVersion_ = ""; + /** + * + * + *
+   * Output only. GitHub Enterprise version installed at the host_uri.
+   * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + @java.lang.Override + public java.lang.String getServerVersion() { + java.lang.Object ref = serverVersion_; + 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(); + serverVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. GitHub Enterprise version installed at the host_uri.
+   * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerVersionBytes() { + java.lang.Object ref = serverVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SSL_CA_CERTIFICATE_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object sslCaCertificate_ = ""; + /** + * + * + *
+   * Optional. SSL certificate to use for requests to GitHub Enterprise.
+   * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + @java.lang.Override + public java.lang.String getSslCaCertificate() { + java.lang.Object ref = sslCaCertificate_; + 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(); + sslCaCertificate_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. SSL certificate to use for requests to GitHub Enterprise.
+   * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSslCaCertificateBytes() { + java.lang.Object ref = sslCaCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslCaCertificate_ = 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.GeneratedMessageV3.isStringEmpty(hostUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostUri_); + } + if (appId_ != 0L) { + output.writeInt64(2, appId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appSlug_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appSlug_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKeySecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateKeySecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, webhookSecretSecretVersion_); + } + if (appInstallationId_ != 0L) { + output.writeInt64(8, appInstallationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(installationUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, installationUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getServiceDirectoryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, serverVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslCaCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, sslCaCertificate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostUri_); + } + if (appId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, appId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appSlug_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appSlug_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKeySecretVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateKeySecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(5, webhookSecretSecretVersion_); + } + if (appInstallationId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, appInstallationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(installationUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, installationUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getServiceDirectoryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, serverVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslCaCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, sslCaCertificate_); + } + 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.developerconnect.v1.GitHubEnterpriseConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig other = + (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) obj; + + if (!getHostUri().equals(other.getHostUri())) return false; + if (getAppId() != other.getAppId()) return false; + if (!getAppSlug().equals(other.getAppSlug())) return false; + if (!getPrivateKeySecretVersion().equals(other.getPrivateKeySecretVersion())) return false; + if (!getWebhookSecretSecretVersion().equals(other.getWebhookSecretSecretVersion())) + return false; + if (getAppInstallationId() != other.getAppInstallationId()) return false; + if (!getInstallationUri().equals(other.getInstallationUri())) return false; + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (!getServerVersion().equals(other.getServerVersion())) return false; + if (!getSslCaCertificate().equals(other.getSslCaCertificate())) 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) + HOST_URI_FIELD_NUMBER; + hash = (53 * hash) + getHostUri().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAppId()); + hash = (37 * hash) + APP_SLUG_FIELD_NUMBER; + hash = (53 * hash) + getAppSlug().hashCode(); + hash = (37 * hash) + PRIVATE_KEY_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKeySecretVersion().hashCode(); + hash = (37 * hash) + WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getWebhookSecretSecretVersion().hashCode(); + hash = (37 * hash) + APP_INSTALLATION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAppInstallationId()); + hash = (37 * hash) + INSTALLATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getInstallationUri().hashCode(); + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + hash = (37 * hash) + SERVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getServerVersion().hashCode(); + hash = (37 * hash) + SSL_CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getSslCaCertificate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.developerconnect.v1.GitHubEnterpriseConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitHubEnterpriseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.class, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getServiceDirectoryConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostUri_ = ""; + appId_ = 0L; + appSlug_ = ""; + privateKeySecretVersion_ = ""; + webhookSecretSecretVersion_ = ""; + appInstallationId_ = 0L; + installationUri_ = ""; + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + serverVersion_ = ""; + sslCaCertificate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig build() { + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig buildPartial() { + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig result = + new com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostUri_ = hostUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appId_ = appId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appSlug_ = appSlug_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.privateKeySecretVersion_ = privateKeySecretVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.webhookSecretSecretVersion_ = webhookSecretSecretVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.appInstallationId_ = appInstallationId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.installationUri_ = installationUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.serverVersion_ = serverVersion_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sslCaCertificate_ = sslCaCertificate_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig other) { + if (other == com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance()) + return this; + if (!other.getHostUri().isEmpty()) { + hostUri_ = other.hostUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAppId() != 0L) { + setAppId(other.getAppId()); + } + if (!other.getAppSlug().isEmpty()) { + appSlug_ = other.appSlug_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPrivateKeySecretVersion().isEmpty()) { + privateKeySecretVersion_ = other.privateKeySecretVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getWebhookSecretSecretVersion().isEmpty()) { + webhookSecretSecretVersion_ = other.webhookSecretSecretVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getAppInstallationId() != 0L) { + setAppInstallationId(other.getAppInstallationId()); + } + if (!other.getInstallationUri().isEmpty()) { + installationUri_ = other.installationUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + if (!other.getServerVersion().isEmpty()) { + serverVersion_ = other.serverVersion_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getSslCaCertificate().isEmpty()) { + sslCaCertificate_ = other.sslCaCertificate_; + bitField0_ |= 0x00000200; + 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: + { + hostUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + appId_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + appSlug_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + privateKeySecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + webhookSecretSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 64: + { + appInstallationId_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 64 + case 74: + { + installationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 82: + { + input.readMessage( + getServiceDirectoryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 98: + { + serverVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 98 + case 114: + { + sslCaCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 114 + 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 hostUri_ = ""; + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + public java.lang.String getHostUri() { + java.lang.Object ref = hostUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + public com.google.protobuf.ByteString getHostUriBytes() { + java.lang.Object ref = hostUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostUri to set. + * @return This builder for chaining. + */ + public Builder setHostUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostUri() { + hostUri_ = getDefaultInstance().getHostUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostUri to set. + * @return This builder for chaining. + */ + public Builder setHostUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long appId_; + /** + * + * + *
+     * Optional. ID of the GitHub App created from the manifest.
+     * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + @java.lang.Override + public long getAppId() { + return appId_; + } + /** + * + * + *
+     * Optional. ID of the GitHub App created from the manifest.
+     * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appId to set. + * @return This builder for chaining. + */ + public Builder setAppId(long value) { + + appId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. ID of the GitHub App created from the manifest.
+     * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppId() { + bitField0_ = (bitField0_ & ~0x00000002); + appId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object appSlug_ = ""; + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The appSlug. + */ + public java.lang.String getAppSlug() { + java.lang.Object ref = appSlug_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appSlug_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for appSlug. + */ + public com.google.protobuf.ByteString getAppSlugBytes() { + java.lang.Object ref = appSlug_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appSlug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The appSlug to set. + * @return This builder for chaining. + */ + public Builder setAppSlug(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appSlug_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAppSlug() { + appSlug_ = getDefaultInstance().getAppSlug(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for appSlug to set. + * @return This builder for chaining. + */ + public Builder setAppSlugBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appSlug_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object privateKeySecretVersion_ = ""; + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKeySecretVersion. + */ + public java.lang.String getPrivateKeySecretVersion() { + java.lang.Object ref = privateKeySecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateKeySecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKeySecretVersion. + */ + public com.google.protobuf.ByteString getPrivateKeySecretVersionBytes() { + java.lang.Object ref = privateKeySecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The privateKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setPrivateKeySecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateKeySecretVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateKeySecretVersion() { + privateKeySecretVersion_ = getDefaultInstance().getPrivateKeySecretVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for privateKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setPrivateKeySecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateKeySecretVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookSecretSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearWebhookSecretSecretVersion() { + webhookSecretSecretVersion_ = getDefaultInstance().getWebhookSecretSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private long appInstallationId_; + /** + * + * + *
+     * Optional. ID of the installation of the GitHub App.
+     * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appInstallationId. + */ + @java.lang.Override + public long getAppInstallationId() { + return appInstallationId_; + } + /** + * + * + *
+     * Optional. ID of the installation of the GitHub App.
+     * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appInstallationId to set. + * @return This builder for chaining. + */ + public Builder setAppInstallationId(long value) { + + appInstallationId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. ID of the installation of the GitHub App.
+     * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppInstallationId() { + bitField0_ = (bitField0_ & ~0x00000020); + appInstallationId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object installationUri_ = ""; + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The installationUri. + */ + public java.lang.String getInstallationUri() { + java.lang.Object ref = installationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + installationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for installationUri. + */ + public com.google.protobuf.ByteString getInstallationUriBytes() { + java.lang.Object ref = installationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + installationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The installationUri to set. + * @return This builder for chaining. + */ + public Builder setInstallationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + installationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearInstallationUri() { + installationUri_ = getDefaultInstance().getInstallationUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for installationUri to set. + * @return This builder for chaining. + */ + public Builder setInstallationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + installationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.developerconnect.v1.ServiceDirectoryConfig + .getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getServiceDirectoryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder> + getServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + private java.lang.Object serverVersion_ = ""; + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + public java.lang.String getServerVersion() { + java.lang.Object ref = serverVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + public com.google.protobuf.ByteString getServerVersionBytes() { + java.lang.Object ref = serverVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serverVersion to set. + * @return This builder for chaining. + */ + public Builder setServerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverVersion_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServerVersion() { + serverVersion_ = getDefaultInstance().getServerVersion(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serverVersion to set. + * @return This builder for chaining. + */ + public Builder setServerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverVersion_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object sslCaCertificate_ = ""; + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + public java.lang.String getSslCaCertificate() { + java.lang.Object ref = sslCaCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sslCaCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + public com.google.protobuf.ByteString getSslCaCertificateBytes() { + java.lang.Object ref = sslCaCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sslCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setSslCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sslCaCertificate_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSslCaCertificate() { + sslCaCertificate_ = getDefaultInstance().getSslCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sslCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setSslCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sslCaCertificate_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + private static final com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig(); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfigOrBuilder.java new file mode 100644 index 000000000000..f6bd1f8b763c --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfigOrBuilder.java @@ -0,0 +1,295 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface GitHubEnterpriseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The URI of the GitHub Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + java.lang.String getHostUri(); + /** + * + * + *
+   * Required. The URI of the GitHub Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + com.google.protobuf.ByteString getHostUriBytes(); + + /** + * + * + *
+   * Optional. ID of the GitHub App created from the manifest.
+   * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + long getAppId(); + + /** + * + * + *
+   * Output only. The URL-friendly name of the GitHub App.
+   * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The appSlug. + */ + java.lang.String getAppSlug(); + /** + * + * + *
+   * Output only. The URL-friendly name of the GitHub App.
+   * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for appSlug. + */ + com.google.protobuf.ByteString getAppSlugBytes(); + + /** + * + * + *
+   * Optional. SecretManager resource containing the private key of the GitHub
+   * App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKeySecretVersion. + */ + java.lang.String getPrivateKeySecretVersion(); + /** + * + * + *
+   * Optional. SecretManager resource containing the private key of the GitHub
+   * App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKeySecretVersion. + */ + com.google.protobuf.ByteString getPrivateKeySecretVersionBytes(); + + /** + * + * + *
+   * Optional. SecretManager resource containing the webhook secret of the
+   * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + java.lang.String getWebhookSecretSecretVersion(); + /** + * + * + *
+   * Optional. SecretManager resource containing the webhook secret of the
+   * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes(); + + /** + * + * + *
+   * Optional. ID of the installation of the GitHub App.
+   * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appInstallationId. + */ + long getAppInstallationId(); + + /** + * + * + *
+   * Output only. The URI to navigate to in order to manage the installation
+   * associated with this GitHubEnterpriseConfig.
+   * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The installationUri. + */ + java.lang.String getInstallationUri(); + /** + * + * + *
+   * Output only. The URI to navigate to in order to manage the installation
+   * associated with this GitHubEnterpriseConfig.
+   * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for installationUri. + */ + com.google.protobuf.ByteString getInstallationUriBytes(); + + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
+   * Output only. GitHub Enterprise version installed at the host_uri.
+   * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + java.lang.String getServerVersion(); + /** + * + * + *
+   * Output only. GitHub Enterprise version installed at the host_uri.
+   * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + com.google.protobuf.ByteString getServerVersionBytes(); + + /** + * + * + *
+   * Optional. SSL certificate to use for requests to GitHub Enterprise.
+   * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + java.lang.String getSslCaCertificate(); + /** + * + * + *
+   * Optional. SSL certificate to use for requests to GitHub Enterprise.
+   * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + com.google.protobuf.ByteString getSslCaCertificateBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfig.java new file mode 100644 index 000000000000..2839907e9c19 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfig.java @@ -0,0 +1,1347 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Configuration for connections to gitlab.com.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitLabConfig} + */ +public final class GitLabConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.GitLabConfig) + GitLabConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitLabConfig.newBuilder() to construct. + private GitLabConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitLabConfig() { + webhookSecretSecretVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitLabConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitLabConfig.class, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder.class); + } + + private int bitField0_; + public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + @java.lang.Override + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + 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(); + webhookSecretSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER = 2; + private com.google.cloud.developerconnect.v1.UserCredential readAuthorizerCredential_; + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + @java.lang.Override + public boolean hasReadAuthorizerCredential() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential() { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder() { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + + public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER = 3; + private com.google.cloud.developerconnect.v1.UserCredential authorizerCredential_; + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + @java.lang.Override + public boolean hasAuthorizerCredential() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential() { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getAuthorizerCredentialOrBuilder() { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + + 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.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webhookSecretSecretVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getReadAuthorizerCredential()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAuthorizerCredential()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, webhookSecretSecretVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getReadAuthorizerCredential()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthorizerCredential()); + } + 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.developerconnect.v1.GitLabConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.GitLabConfig other = + (com.google.cloud.developerconnect.v1.GitLabConfig) obj; + + if (!getWebhookSecretSecretVersion().equals(other.getWebhookSecretSecretVersion())) + return false; + if (hasReadAuthorizerCredential() != other.hasReadAuthorizerCredential()) return false; + if (hasReadAuthorizerCredential()) { + if (!getReadAuthorizerCredential().equals(other.getReadAuthorizerCredential())) return false; + } + if (hasAuthorizerCredential() != other.hasAuthorizerCredential()) return false; + if (hasAuthorizerCredential()) { + if (!getAuthorizerCredential().equals(other.getAuthorizerCredential())) 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) + WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getWebhookSecretSecretVersion().hashCode(); + if (hasReadAuthorizerCredential()) { + hash = (37 * hash) + READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getReadAuthorizerCredential().hashCode(); + } + if (hasAuthorizerCredential()) { + hash = (37 * hash) + AUTHORIZER_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizerCredential().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig 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.developerconnect.v1.GitLabConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig 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.developerconnect.v1.GitLabConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.developerconnect.v1.GitLabConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitLabConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.GitLabConfig) + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitLabConfig.class, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.GitLabConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReadAuthorizerCredentialFieldBuilder(); + getAuthorizerCredentialFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + webhookSecretSecretVersion_ = ""; + readAuthorizerCredential_ = null; + if (readAuthorizerCredentialBuilder_ != null) { + readAuthorizerCredentialBuilder_.dispose(); + readAuthorizerCredentialBuilder_ = null; + } + authorizerCredential_ = null; + if (authorizerCredentialBuilder_ != null) { + authorizerCredentialBuilder_.dispose(); + authorizerCredentialBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig build() { + com.google.cloud.developerconnect.v1.GitLabConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig buildPartial() { + com.google.cloud.developerconnect.v1.GitLabConfig result = + new com.google.cloud.developerconnect.v1.GitLabConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.GitLabConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.webhookSecretSecretVersion_ = webhookSecretSecretVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readAuthorizerCredential_ = + readAuthorizerCredentialBuilder_ == null + ? readAuthorizerCredential_ + : readAuthorizerCredentialBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorizerCredential_ = + authorizerCredentialBuilder_ == null + ? authorizerCredential_ + : authorizerCredentialBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.GitLabConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.GitLabConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.GitLabConfig other) { + if (other == com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance()) + return this; + if (!other.getWebhookSecretSecretVersion().isEmpty()) { + webhookSecretSecretVersion_ = other.webhookSecretSecretVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReadAuthorizerCredential()) { + mergeReadAuthorizerCredential(other.getReadAuthorizerCredential()); + } + if (other.hasAuthorizerCredential()) { + mergeAuthorizerCredential(other.getAuthorizerCredential()); + } + 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: + { + webhookSecretSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReadAuthorizerCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getAuthorizerCredentialFieldBuilder().getBuilder(), extensionRegistry); + 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 webhookSecretSecretVersion_ = ""; + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookSecretSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearWebhookSecretSecretVersion() { + webhookSecretSecretVersion_ = getDefaultInstance().getWebhookSecretSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.UserCredential readAuthorizerCredential_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + readAuthorizerCredentialBuilder_; + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + public boolean hasReadAuthorizerCredential() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + public com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential() { + if (readAuthorizerCredentialBuilder_ == null) { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } else { + return readAuthorizerCredentialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (readAuthorizerCredentialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readAuthorizerCredential_ = value; + } else { + readAuthorizerCredentialBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential.Builder builderForValue) { + if (readAuthorizerCredentialBuilder_ == null) { + readAuthorizerCredential_ = builderForValue.build(); + } else { + readAuthorizerCredentialBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (readAuthorizerCredentialBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && readAuthorizerCredential_ != null + && readAuthorizerCredential_ + != com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) { + getReadAuthorizerCredentialBuilder().mergeFrom(value); + } else { + readAuthorizerCredential_ = value; + } + } else { + readAuthorizerCredentialBuilder_.mergeFrom(value); + } + if (readAuthorizerCredential_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReadAuthorizerCredential() { + bitField0_ = (bitField0_ & ~0x00000002); + readAuthorizerCredential_ = null; + if (readAuthorizerCredentialBuilder_ != null) { + readAuthorizerCredentialBuilder_.dispose(); + readAuthorizerCredentialBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredential.Builder + getReadAuthorizerCredentialBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReadAuthorizerCredentialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder() { + if (readAuthorizerCredentialBuilder_ != null) { + return readAuthorizerCredentialBuilder_.getMessageOrBuilder(); + } else { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + getReadAuthorizerCredentialFieldBuilder() { + if (readAuthorizerCredentialBuilder_ == null) { + readAuthorizerCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder>( + getReadAuthorizerCredential(), getParentForChildren(), isClean()); + readAuthorizerCredential_ = null; + } + return readAuthorizerCredentialBuilder_; + } + + private com.google.cloud.developerconnect.v1.UserCredential authorizerCredential_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + authorizerCredentialBuilder_; + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + public boolean hasAuthorizerCredential() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + public com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential() { + if (authorizerCredentialBuilder_ == null) { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } else { + return authorizerCredentialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (authorizerCredentialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authorizerCredential_ = value; + } else { + authorizerCredentialBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential.Builder builderForValue) { + if (authorizerCredentialBuilder_ == null) { + authorizerCredential_ = builderForValue.build(); + } else { + authorizerCredentialBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (authorizerCredentialBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && authorizerCredential_ != null + && authorizerCredential_ + != com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) { + getAuthorizerCredentialBuilder().mergeFrom(value); + } else { + authorizerCredential_ = value; + } + } else { + authorizerCredentialBuilder_.mergeFrom(value); + } + if (authorizerCredential_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthorizerCredential() { + bitField0_ = (bitField0_ & ~0x00000004); + authorizerCredential_ = null; + if (authorizerCredentialBuilder_ != null) { + authorizerCredentialBuilder_.dispose(); + authorizerCredentialBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredential.Builder + getAuthorizerCredentialBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAuthorizerCredentialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getAuthorizerCredentialOrBuilder() { + if (authorizerCredentialBuilder_ != null) { + return authorizerCredentialBuilder_.getMessageOrBuilder(); + } else { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + getAuthorizerCredentialFieldBuilder() { + if (authorizerCredentialBuilder_ == null) { + authorizerCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder>( + getAuthorizerCredential(), getParentForChildren(), isClean()); + authorizerCredential_ = null; + } + return authorizerCredentialBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.GitLabConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.GitLabConfig) + private static final com.google.cloud.developerconnect.v1.GitLabConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.GitLabConfig(); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitLabConfig 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.developerconnect.v1.GitLabConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfigOrBuilder.java new file mode 100644 index 000000000000..20c53b43f2fa --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfigOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface GitLabConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.GitLabConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + java.lang.String getWebhookSecretSecretVersion(); + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes(); + + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + boolean hasReadAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder(); + + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + boolean hasAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder getAuthorizerCredentialOrBuilder(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfig.java new file mode 100644 index 000000000000..47234aae766d --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfig.java @@ -0,0 +1,2261 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Configuration for connections to an instance of GitLab Enterprise.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitLabEnterpriseConfig} + */ +public final class GitLabEnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + GitLabEnterpriseConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitLabEnterpriseConfig.newBuilder() to construct. + private GitLabEnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitLabEnterpriseConfig() { + hostUri_ = ""; + webhookSecretSecretVersion_ = ""; + sslCaCertificate_ = ""; + serverVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitLabEnterpriseConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.class, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder.class); + } + + private int bitField0_; + public static final int HOST_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostUri_ = ""; + /** + * + * + *
+   * Required. The URI of the GitLab Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + @java.lang.Override + public java.lang.String getHostUri() { + java.lang.Object ref = hostUri_; + 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(); + hostUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The URI of the GitLab Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostUriBytes() { + java.lang.Object ref = hostUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + @java.lang.Override + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + 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(); + webhookSecretSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER = 3; + private com.google.cloud.developerconnect.v1.UserCredential readAuthorizerCredential_; + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + @java.lang.Override + public boolean hasReadAuthorizerCredential() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential() { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder() { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + + public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER = 4; + private com.google.cloud.developerconnect.v1.UserCredential authorizerCredential_; + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + @java.lang.Override + public boolean hasAuthorizerCredential() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential() { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getAuthorizerCredentialOrBuilder() { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.developerconnect.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + public static final int SSL_CA_CERTIFICATE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object sslCaCertificate_ = ""; + /** + * + * + *
+   * Optional. SSL Certificate Authority certificate to use for requests to
+   * GitLab Enterprise instance.
+   * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + @java.lang.Override + public java.lang.String getSslCaCertificate() { + java.lang.Object ref = sslCaCertificate_; + 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(); + sslCaCertificate_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. SSL Certificate Authority certificate to use for requests to
+   * GitLab Enterprise instance.
+   * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSslCaCertificateBytes() { + java.lang.Object ref = sslCaCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVER_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverVersion_ = ""; + /** + * + * + *
+   * Output only. Version of the GitLab Enterprise server running on the
+   * `host_uri`.
+   * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + @java.lang.Override + public java.lang.String getServerVersion() { + java.lang.Object ref = serverVersion_; + 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(); + serverVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Version of the GitLab Enterprise server running on the
+   * `host_uri`.
+   * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerVersionBytes() { + java.lang.Object ref = serverVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverVersion_ = 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.GeneratedMessageV3.isStringEmpty(hostUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, webhookSecretSecretVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getReadAuthorizerCredential()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getAuthorizerCredential()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getServiceDirectoryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslCaCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sslCaCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serverVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, webhookSecretSecretVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getReadAuthorizerCredential()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAuthorizerCredential()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getServiceDirectoryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslCaCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sslCaCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serverVersion_); + } + 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.developerconnect.v1.GitLabEnterpriseConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig other = + (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) obj; + + if (!getHostUri().equals(other.getHostUri())) return false; + if (!getWebhookSecretSecretVersion().equals(other.getWebhookSecretSecretVersion())) + return false; + if (hasReadAuthorizerCredential() != other.hasReadAuthorizerCredential()) return false; + if (hasReadAuthorizerCredential()) { + if (!getReadAuthorizerCredential().equals(other.getReadAuthorizerCredential())) return false; + } + if (hasAuthorizerCredential() != other.hasAuthorizerCredential()) return false; + if (hasAuthorizerCredential()) { + if (!getAuthorizerCredential().equals(other.getAuthorizerCredential())) return false; + } + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (!getSslCaCertificate().equals(other.getSslCaCertificate())) return false; + if (!getServerVersion().equals(other.getServerVersion())) 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) + HOST_URI_FIELD_NUMBER; + hash = (53 * hash) + getHostUri().hashCode(); + hash = (37 * hash) + WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getWebhookSecretSecretVersion().hashCode(); + if (hasReadAuthorizerCredential()) { + hash = (37 * hash) + READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getReadAuthorizerCredential().hashCode(); + } + if (hasAuthorizerCredential()) { + hash = (37 * hash) + AUTHORIZER_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizerCredential().hashCode(); + } + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + hash = (37 * hash) + SSL_CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getSslCaCertificate().hashCode(); + hash = (37 * hash) + SERVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getServerVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.developerconnect.v1.GitLabEnterpriseConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitLabEnterpriseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.class, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReadAuthorizerCredentialFieldBuilder(); + getAuthorizerCredentialFieldBuilder(); + getServiceDirectoryConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostUri_ = ""; + webhookSecretSecretVersion_ = ""; + readAuthorizerCredential_ = null; + if (readAuthorizerCredentialBuilder_ != null) { + readAuthorizerCredentialBuilder_.dispose(); + readAuthorizerCredentialBuilder_ = null; + } + authorizerCredential_ = null; + if (authorizerCredentialBuilder_ != null) { + authorizerCredentialBuilder_.dispose(); + authorizerCredentialBuilder_ = null; + } + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + sslCaCertificate_ = ""; + serverVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig build() { + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig buildPartial() { + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig result = + new com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostUri_ = hostUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.webhookSecretSecretVersion_ = webhookSecretSecretVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.readAuthorizerCredential_ = + readAuthorizerCredentialBuilder_ == null + ? readAuthorizerCredential_ + : readAuthorizerCredentialBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.authorizerCredential_ = + authorizerCredentialBuilder_ == null + ? authorizerCredential_ + : authorizerCredentialBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sslCaCertificate_ = sslCaCertificate_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.serverVersion_ = serverVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig other) { + if (other == com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance()) + return this; + if (!other.getHostUri().isEmpty()) { + hostUri_ = other.hostUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWebhookSecretSecretVersion().isEmpty()) { + webhookSecretSecretVersion_ = other.webhookSecretSecretVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasReadAuthorizerCredential()) { + mergeReadAuthorizerCredential(other.getReadAuthorizerCredential()); + } + if (other.hasAuthorizerCredential()) { + mergeAuthorizerCredential(other.getAuthorizerCredential()); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + if (!other.getSslCaCertificate().isEmpty()) { + sslCaCertificate_ = other.sslCaCertificate_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getServerVersion().isEmpty()) { + serverVersion_ = other.serverVersion_; + bitField0_ |= 0x00000040; + 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: + { + hostUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + webhookSecretSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getReadAuthorizerCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getAuthorizerCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getServiceDirectoryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + sslCaCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + serverVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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 hostUri_ = ""; + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + public java.lang.String getHostUri() { + java.lang.Object ref = hostUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + public com.google.protobuf.ByteString getHostUriBytes() { + java.lang.Object ref = hostUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostUri to set. + * @return This builder for chaining. + */ + public Builder setHostUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostUri() { + hostUri_ = getDefaultInstance().getHostUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostUri to set. + * @return This builder for chaining. + */ + public Builder setHostUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookSecretSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearWebhookSecretSecretVersion() { + webhookSecretSecretVersion_ = getDefaultInstance().getWebhookSecretSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.UserCredential readAuthorizerCredential_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + readAuthorizerCredentialBuilder_; + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + public boolean hasReadAuthorizerCredential() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + public com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential() { + if (readAuthorizerCredentialBuilder_ == null) { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } else { + return readAuthorizerCredentialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (readAuthorizerCredentialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readAuthorizerCredential_ = value; + } else { + readAuthorizerCredentialBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential.Builder builderForValue) { + if (readAuthorizerCredentialBuilder_ == null) { + readAuthorizerCredential_ = builderForValue.build(); + } else { + readAuthorizerCredentialBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (readAuthorizerCredentialBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && readAuthorizerCredential_ != null + && readAuthorizerCredential_ + != com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) { + getReadAuthorizerCredentialBuilder().mergeFrom(value); + } else { + readAuthorizerCredential_ = value; + } + } else { + readAuthorizerCredentialBuilder_.mergeFrom(value); + } + if (readAuthorizerCredential_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReadAuthorizerCredential() { + bitField0_ = (bitField0_ & ~0x00000004); + readAuthorizerCredential_ = null; + if (readAuthorizerCredentialBuilder_ != null) { + readAuthorizerCredentialBuilder_.dispose(); + readAuthorizerCredentialBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredential.Builder + getReadAuthorizerCredentialBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReadAuthorizerCredentialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder() { + if (readAuthorizerCredentialBuilder_ != null) { + return readAuthorizerCredentialBuilder_.getMessageOrBuilder(); + } else { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + getReadAuthorizerCredentialFieldBuilder() { + if (readAuthorizerCredentialBuilder_ == null) { + readAuthorizerCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder>( + getReadAuthorizerCredential(), getParentForChildren(), isClean()); + readAuthorizerCredential_ = null; + } + return readAuthorizerCredentialBuilder_; + } + + private com.google.cloud.developerconnect.v1.UserCredential authorizerCredential_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + authorizerCredentialBuilder_; + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + public boolean hasAuthorizerCredential() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + public com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential() { + if (authorizerCredentialBuilder_ == null) { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } else { + return authorizerCredentialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (authorizerCredentialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authorizerCredential_ = value; + } else { + authorizerCredentialBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential.Builder builderForValue) { + if (authorizerCredentialBuilder_ == null) { + authorizerCredential_ = builderForValue.build(); + } else { + authorizerCredentialBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (authorizerCredentialBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && authorizerCredential_ != null + && authorizerCredential_ + != com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) { + getAuthorizerCredentialBuilder().mergeFrom(value); + } else { + authorizerCredential_ = value; + } + } else { + authorizerCredentialBuilder_.mergeFrom(value); + } + if (authorizerCredential_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthorizerCredential() { + bitField0_ = (bitField0_ & ~0x00000008); + authorizerCredential_ = null; + if (authorizerCredentialBuilder_ != null) { + authorizerCredentialBuilder_.dispose(); + authorizerCredentialBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredential.Builder + getAuthorizerCredentialBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAuthorizerCredentialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getAuthorizerCredentialOrBuilder() { + if (authorizerCredentialBuilder_ != null) { + return authorizerCredentialBuilder_.getMessageOrBuilder(); + } else { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + getAuthorizerCredentialFieldBuilder() { + if (authorizerCredentialBuilder_ == null) { + authorizerCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder>( + getAuthorizerCredential(), getParentForChildren(), isClean()); + authorizerCredential_ = null; + } + return authorizerCredentialBuilder_; + } + + private com.google.cloud.developerconnect.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.developerconnect.v1.ServiceDirectoryConfig + .getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getServiceDirectoryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder> + getServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + private java.lang.Object sslCaCertificate_ = ""; + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + public java.lang.String getSslCaCertificate() { + java.lang.Object ref = sslCaCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sslCaCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + public com.google.protobuf.ByteString getSslCaCertificateBytes() { + java.lang.Object ref = sslCaCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sslCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setSslCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sslCaCertificate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSslCaCertificate() { + sslCaCertificate_ = getDefaultInstance().getSslCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sslCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setSslCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sslCaCertificate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object serverVersion_ = ""; + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + public java.lang.String getServerVersion() { + java.lang.Object ref = serverVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + public com.google.protobuf.ByteString getServerVersionBytes() { + java.lang.Object ref = serverVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serverVersion to set. + * @return This builder for chaining. + */ + public Builder setServerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServerVersion() { + serverVersion_ = getDefaultInstance().getServerVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serverVersion to set. + * @return This builder for chaining. + */ + public Builder setServerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + private static final com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig(); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfigOrBuilder.java new file mode 100644 index 000000000000..6f52da1d62ee --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfigOrBuilder.java @@ -0,0 +1,293 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface GitLabEnterpriseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The URI of the GitLab Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + java.lang.String getHostUri(); + /** + * + * + *
+   * Required. The URI of the GitLab Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + com.google.protobuf.ByteString getHostUriBytes(); + + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + java.lang.String getWebhookSecretSecretVersion(); + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes(); + + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + boolean hasReadAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder(); + + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + boolean hasAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder getAuthorizerCredentialOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
+   * Optional. SSL Certificate Authority certificate to use for requests to
+   * GitLab Enterprise instance.
+   * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + java.lang.String getSslCaCertificate(); + /** + * + * + *
+   * Optional. SSL Certificate Authority certificate to use for requests to
+   * GitLab Enterprise instance.
+   * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + com.google.protobuf.ByteString getSslCaCertificateBytes(); + + /** + * + * + *
+   * Output only. Version of the GitLab Enterprise server running on the
+   * `host_uri`.
+   * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + java.lang.String getServerVersion(); + /** + * + * + *
+   * Output only. Version of the GitLab Enterprise server running on the
+   * `host_uri`.
+   * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + com.google.protobuf.ByteString getServerVersionBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLink.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLink.java index b71e2aa022ed..3039431abc61 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLink.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLink.java @@ -43,6 +43,7 @@ private GitRepositoryLink() { cloneUri_ = ""; etag_ = ""; uid_ = ""; + webhookId_ = ""; } @java.lang.Override @@ -672,6 +673,57 @@ public com.google.protobuf.ByteString getUidBytes() { } } + public static final int WEBHOOK_ID_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookId_ = ""; + /** + * + * + *
+   * Output only. External ID of the webhook created for the repository.
+   * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The webhookId. + */ + @java.lang.Override + public java.lang.String getWebhookId() { + java.lang.Object ref = webhookId_; + 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(); + webhookId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. External ID of the webhook created for the repository.
+   * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for webhookId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookIdBytes() { + java.lang.Object ref = webhookId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -714,6 +766,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, uid_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, webhookId_); + } getUnknownFields().writeTo(output); } @@ -767,6 +822,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, uid_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, webhookId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -802,6 +860,7 @@ public boolean equals(final java.lang.Object obj) { if (getReconciling() != other.getReconciling()) return false; if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!getUid().equals(other.getUid())) return false; + if (!getWebhookId().equals(other.getWebhookId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -843,6 +902,8 @@ public int hashCode() { } hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + WEBHOOK_ID_FIELD_NUMBER; + hash = (53 * hash) + getWebhookId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1042,6 +1103,7 @@ public Builder clear() { reconciling_ = false; internalGetMutableAnnotations().clear(); uid_ = ""; + webhookId_ = ""; return this; } @@ -1114,6 +1176,9 @@ private void buildPartial0(com.google.cloud.developerconnect.v1.GitRepositoryLin if (((from_bitField0_ & 0x00000200) != 0)) { result.uid_ = uid_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.webhookId_ = webhookId_; + } result.bitField0_ |= to_bitField0_; } @@ -1199,6 +1264,11 @@ public Builder mergeFrom(com.google.cloud.developerconnect.v1.GitRepositoryLink bitField0_ |= 0x00000200; onChanged(); } + if (!other.getWebhookId().isEmpty()) { + webhookId_ = other.webhookId_; + bitField0_ |= 0x00000400; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1297,6 +1367,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 82 + case 90: + { + webhookId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2771,6 +2847,112 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object webhookId_ = ""; + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The webhookId. + */ + public java.lang.String getWebhookId() { + java.lang.Object ref = webhookId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for webhookId. + */ + public com.google.protobuf.ByteString getWebhookIdBytes() { + java.lang.Object ref = webhookId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The webhookId to set. + * @return This builder for chaining. + */ + public Builder setWebhookId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWebhookId() { + webhookId_ = getDefaultInstance().getWebhookId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for webhookId to set. + * @return This builder for chaining. + */ + public Builder setWebhookIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkOrBuilder.java index c5bb243e0f27..36361e279dea 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkOrBuilder.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkOrBuilder.java @@ -384,4 +384,29 @@ java.lang.String getAnnotationsOrDefault( * @return The bytes for uid. */ com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. External ID of the webhook created for the repository.
+   * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The webhookId. + */ + java.lang.String getWebhookId(); + /** + * + * + *
+   * Output only. External ID of the webhook created for the repository.
+   * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for webhookId. + */ + com.google.protobuf.ByteString getWebhookIdBytes(); } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadata.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadata.java index c82000c10ebe..ae1b772cc733 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadata.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadata.java @@ -326,9 +326,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1622,9 +1623,10 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1641,9 +1643,10 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1664,9 +1667,10 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadataOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadataOrBuilder.java index cc3d56d07ec0..ec10b99e2f3f 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadataOrBuilder.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadataOrBuilder.java @@ -181,9 +181,10 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfig.java new file mode 100644 index 000000000000..5124c5494da5 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfig.java @@ -0,0 +1,656 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * ServiceDirectoryConfig represents Service Directory configuration for a
+ * connection.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.ServiceDirectoryConfig} + */ +public final class ServiceDirectoryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + ServiceDirectoryConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceDirectoryConfig.newBuilder() to construct. + private ServiceDirectoryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceDirectoryConfig() { + service_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceDirectoryConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.class, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + /** + * + * + *
+   * Required. The Service Directory service name.
+   * Format:
+   * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+   * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + 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(); + service_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Service Directory service name.
+   * Format:
+   * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+   * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = 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.GeneratedMessageV3.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + 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.developerconnect.v1.ServiceDirectoryConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig other = + (com.google.cloud.developerconnect.v1.ServiceDirectoryConfig) obj; + + if (!getService().equals(other.getService())) 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) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.developerconnect.v1.ServiceDirectoryConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ServiceDirectoryConfig represents Service Directory configuration for a
+   * connection.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.ServiceDirectoryConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.class, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + service_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig build() { + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig buildPartial() { + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig result = + new com.google.cloud.developerconnect.v1.ServiceDirectoryConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.ServiceDirectoryConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.service_ = service_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.ServiceDirectoryConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.ServiceDirectoryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.ServiceDirectoryConfig other) { + if (other == com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance()) + return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + bitField0_ |= 0x00000001; + 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: + { + service_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 java.lang.Object service_ = ""; + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + private static final com.google.cloud.developerconnect.v1.ServiceDirectoryConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.ServiceDirectoryConfig(); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfigOrBuilder.java new file mode 100644 index 000000000000..5616bd3b0bb3 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfigOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface ServiceDirectoryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Service Directory service name.
+   * Format:
+   * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+   * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + java.lang.String getService(); + /** + * + * + *
+   * Required. The Service Directory service name.
+   * Format:
+   * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+   * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredential.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredential.java new file mode 100644 index 000000000000..7e9caf0335f5 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredential.java @@ -0,0 +1,837 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Represents a personal access token that authorized the Connection,
+ * and associated metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.UserCredential} + */ +public final class UserCredential extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.UserCredential) + UserCredentialOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserCredential.newBuilder() to construct. + private UserCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserCredential() { + userTokenSecretVersion_ = ""; + username_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserCredential(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.UserCredential.class, + com.google.cloud.developerconnect.v1.UserCredential.Builder.class); + } + + public static final int USER_TOKEN_SECRET_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userTokenSecretVersion_ = ""; + /** + * + * + *
+   * Required. A SecretManager resource containing the user token that
+   * authorizes the Developer Connect connection. Format:
+   * `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The userTokenSecretVersion. + */ + @java.lang.Override + public java.lang.String getUserTokenSecretVersion() { + java.lang.Object ref = userTokenSecretVersion_; + 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(); + userTokenSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A SecretManager resource containing the user token that
+   * authorizes the Developer Connect connection. Format:
+   * `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userTokenSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserTokenSecretVersionBytes() { + java.lang.Object ref = userTokenSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userTokenSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USERNAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * + * + *
+   * Output only. The username associated with this token.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + 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(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The username associated with this token.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = 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.GeneratedMessageV3.isStringEmpty(userTokenSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userTokenSecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userTokenSecretVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userTokenSecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); + } + 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.developerconnect.v1.UserCredential)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.UserCredential other = + (com.google.cloud.developerconnect.v1.UserCredential) obj; + + if (!getUserTokenSecretVersion().equals(other.getUserTokenSecretVersion())) return false; + if (!getUsername().equals(other.getUsername())) 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) + USER_TOKEN_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getUserTokenSecretVersion().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.UserCredential 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.developerconnect.v1.UserCredential parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.UserCredential 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.developerconnect.v1.UserCredential parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.developerconnect.v1.UserCredential 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a personal access token that authorized the Connection,
+   * and associated metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.UserCredential} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.UserCredential) + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.UserCredential.class, + com.google.cloud.developerconnect.v1.UserCredential.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.UserCredential.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userTokenSecretVersion_ = ""; + username_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential build() { + com.google.cloud.developerconnect.v1.UserCredential result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential buildPartial() { + com.google.cloud.developerconnect.v1.UserCredential result = + new com.google.cloud.developerconnect.v1.UserCredential(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.UserCredential result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userTokenSecretVersion_ = userTokenSecretVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.username_ = username_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.UserCredential) { + return mergeFrom((com.google.cloud.developerconnect.v1.UserCredential) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.UserCredential other) { + if (other == com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) + return this; + if (!other.getUserTokenSecretVersion().isEmpty()) { + userTokenSecretVersion_ = other.userTokenSecretVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000002; + 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: + { + userTokenSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 bitField0_; + + private java.lang.Object userTokenSecretVersion_ = ""; + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The userTokenSecretVersion. + */ + public java.lang.String getUserTokenSecretVersion() { + java.lang.Object ref = userTokenSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userTokenSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userTokenSecretVersion. + */ + public com.google.protobuf.ByteString getUserTokenSecretVersionBytes() { + java.lang.Object ref = userTokenSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userTokenSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The userTokenSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setUserTokenSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userTokenSecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUserTokenSecretVersion() { + userTokenSecretVersion_ = getDefaultInstance().getUserTokenSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for userTokenSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setUserTokenSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userTokenSecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.UserCredential) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.UserCredential) + private static final com.google.cloud.developerconnect.v1.UserCredential DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.UserCredential(); + } + + public static com.google.cloud.developerconnect.v1.UserCredential getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserCredential 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.developerconnect.v1.UserCredential getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredentialOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredentialOrBuilder.java new file mode 100644 index 000000000000..37f23dd5a3c4 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredentialOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 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! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface UserCredentialOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.UserCredential) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A SecretManager resource containing the user token that
+   * authorizes the Developer Connect connection. Format:
+   * `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The userTokenSecretVersion. + */ + java.lang.String getUserTokenSecretVersion(); + /** + * + * + *
+   * Required. A SecretManager resource containing the user token that
+   * authorizes the Developer Connect connection. Format:
+   * `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userTokenSecretVersion. + */ + com.google.protobuf.ByteString getUserTokenSecretVersionBytes(); + + /** + * + * + *
+   * Output only. The username associated with this token.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Output only. The username associated with this token.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto index 3bd3a64ef560..77ac1d3a96bc 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto @@ -38,6 +38,14 @@ option (google.api.resource_definition) = { type: "secretmanager.googleapis.com/SecretVersion" pattern: "projects/{project}/secrets/{secret}/versions/{secret_version}" }; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; +option (google.api.resource_definition) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" +}; // Service describing handlers for resources service DeveloperConnect { @@ -217,6 +225,15 @@ message Connection { oneof connection_config { // Configuration for connections to github.com. GitHubConfig github_config = 5; + + // Configuration for connections to an instance of GitHub Enterprise. + GitHubEnterpriseConfig github_enterprise_config = 13; + + // Configuration for connections to gitlab.com. + GitLabConfig gitlab_config = 14; + + // Configuration for connections to an instance of GitLab Enterprise. + GitLabEnterpriseConfig gitlab_enterprise_config = 16; } // Identifier. The resource name of the connection, in the format @@ -265,6 +282,25 @@ message Connection { (google.api.field_info).format = UUID4, (google.api.field_behavior) = OUTPUT_ONLY ]; + + // Optional. The crypto key configuration. This field is used by the + // Customer-Managed Encryption Keys (CMEK) feature. + CryptoKeyConfig crypto_key_config = 15 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The crypto key configuration. This field is used by the Customer-managed +// encryption keys (CMEK) feature. +message CryptoKeyConfig { + // Required. The name of the key which is used to encrypt/decrypt customer + // data. For key in Cloud KMS, the key should be in the format of + // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + string key_reference = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; } // Describes stage and necessary actions to be taken by the @@ -338,6 +374,71 @@ message GitHubConfig { string installation_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Configuration for connections to an instance of GitHub Enterprise. +message GitHubEnterpriseConfig { + // Required. The URI of the GitHub Enterprise host this connection is for. + string host_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. ID of the GitHub App created from the manifest. + int64 app_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The URL-friendly name of the GitHub App. + string app_slug = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. SecretManager resource containing the private key of the GitHub + // App, formatted as `projects/*/secrets/*/versions/*`. + string private_key_secret_version = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Optional. SecretManager resource containing the webhook secret of the + // GitHub App, formatted as `projects/*/secrets/*/versions/*`. + string webhook_secret_secret_version = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Optional. ID of the installation of the GitHub App. + int64 app_installation_id = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The URI to navigate to in order to manage the installation + // associated with this GitHubEnterpriseConfig. + string installation_uri = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration for using Service Directory to privately connect to + // a GitHub Enterprise server. This should only be set if the GitHub + // Enterprise server is hosted on-premises and not reachable by public + // internet. If this field is left empty, calls to the GitHub Enterprise + // server will be made over the public internet. + ServiceDirectoryConfig service_directory_config = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. GitHub Enterprise version installed at the host_uri. + string server_version = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. SSL certificate to use for requests to GitHub Enterprise. + string ssl_ca_certificate = 14 [(google.api.field_behavior) = OPTIONAL]; +} + +// ServiceDirectoryConfig represents Service Directory configuration for a +// connection. +message ServiceDirectoryConfig { + // Required. The Service Directory service name. + // Format: + // projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; +} + // Represents an OAuth token of the account that authorized the Connection, // and associated metadata. message OAuthCredential { @@ -354,6 +455,98 @@ message OAuthCredential { string username = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Configuration for connections to gitlab.com. +message GitLabConfig { + // Required. Immutable. SecretManager resource containing the webhook secret + // of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This + // is used to validate webhooks. + string webhook_secret_secret_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. A GitLab personal access token with the minimum `read_api` scope + // access and a minimum role of `reporter`. The GitLab Projects visible to + // this Personal Access Token will control which Projects Developer Connect + // has access to. + UserCredential read_authorizer_credential = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. A GitLab personal access token with the minimum `api` scope + // access and a minimum role of `maintainer`. The GitLab Projects visible to + // this Personal Access Token will control which Projects Developer Connect + // has access to. + UserCredential authorizer_credential = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Represents a personal access token that authorized the Connection, +// and associated metadata. +message UserCredential { + // Required. A SecretManager resource containing the user token that + // authorizes the Developer Connect connection. Format: + // `projects/*/secrets/*/versions/*`. + string user_token_secret_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Output only. The username associated with this token. + string username = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configuration for connections to an instance of GitLab Enterprise. +message GitLabEnterpriseConfig { + // Required. The URI of the GitLab Enterprise host this connection is for. + string host_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. SecretManager resource containing the webhook secret + // of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This + // is used to validate webhooks. + string webhook_secret_secret_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. A GitLab personal access token with the minimum `read_api` scope + // access and a minimum role of `reporter`. The GitLab Projects visible to + // this Personal Access Token will control which Projects Developer Connect + // has access to. + UserCredential read_authorizer_credential = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. A GitLab personal access token with the minimum `api` scope + // access and a minimum role of `maintainer`. The GitLab Projects visible to + // this Personal Access Token will control which Projects Developer Connect + // has access to. + UserCredential authorizer_credential = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration for using Service Directory to privately connect to + // a GitLab Enterprise instance. This should only be set if the GitLab + // Enterprise server is hosted on-premises and not reachable by public + // internet. If this field is left empty, calls to the GitLab Enterprise + // server will be made over the public internet. + ServiceDirectoryConfig service_directory_config = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. SSL Certificate Authority certificate to use for requests to + // GitLab Enterprise instance. + string ssl_ca_certificate = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Version of the GitLab Enterprise server running on the + // `host_uri`. + string server_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Message for requesting list of Connections message ListConnectionsRequest { // Required. Parent value for ListConnectionsRequest @@ -541,9 +734,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have been cancelled successfully - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. @@ -600,6 +794,9 @@ message GitRepositoryLink { (google.api.field_info).format = UUID4, (google.api.field_behavior) = OUTPUT_ONLY ]; + + // Output only. External ID of the webhook created for the repository. + string webhook_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Message for creating a GitRepositoryLink diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java index 54b447c07007..32288b88b1f9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java @@ -222,6 +222,7 @@ private ScalingMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.ServiceScaling.ScalingMode) } + private int bitField0_; public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 1; private int minInstanceCount_ = 0; /** @@ -283,6 +284,45 @@ public com.google.cloud.run.v2.ServiceScaling.ScalingMode getScalingMode() { : result; } + public static final int MANUAL_INSTANCE_COUNT_FIELD_NUMBER = 6; + private int manualInstanceCount_ = 0; + /** + * + * + *
+   * Optional. total instance count for the service in manual scaling mode. This
+   * number of instances is divided among all revisions with specified traffic
+   * based on the percent of traffic they are receiving.
+   * 
+ * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualInstanceCount field is set. + */ + @java.lang.Override + public boolean hasManualInstanceCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. total instance count for the service in manual scaling mode. This
+   * number of instances is divided among all revisions with specified traffic
+   * based on the percent of traffic they are receiving.
+   * 
+ * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualInstanceCount. + */ + @java.lang.Override + public int getManualInstanceCount() { + return manualInstanceCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -305,6 +345,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, scalingMode_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(6, manualInstanceCount_); + } getUnknownFields().writeTo(output); } @@ -322,6 +365,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, scalingMode_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, manualInstanceCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -339,6 +385,10 @@ public boolean equals(final java.lang.Object obj) { if (getMinInstanceCount() != other.getMinInstanceCount()) return false; if (scalingMode_ != other.scalingMode_) return false; + if (hasManualInstanceCount() != other.hasManualInstanceCount()) return false; + if (hasManualInstanceCount()) { + if (getManualInstanceCount() != other.getManualInstanceCount()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,6 +404,10 @@ public int hashCode() { hash = (53 * hash) + getMinInstanceCount(); hash = (37 * hash) + SCALING_MODE_FIELD_NUMBER; hash = (53 * hash) + scalingMode_; + if (hasManualInstanceCount()) { + hash = (37 * hash) + MANUAL_INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getManualInstanceCount(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -496,6 +550,7 @@ public Builder clear() { bitField0_ = 0; minInstanceCount_ = 0; scalingMode_ = 0; + manualInstanceCount_ = 0; return this; } @@ -538,6 +593,12 @@ private void buildPartial0(com.google.cloud.run.v2.ServiceScaling result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.scalingMode_ = scalingMode_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.manualInstanceCount_ = manualInstanceCount_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -591,6 +652,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.ServiceScaling other) { if (other.scalingMode_ != 0) { setScalingModeValue(other.getScalingModeValue()); } + if (other.hasManualInstanceCount()) { + setManualInstanceCount(other.getManualInstanceCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -629,6 +693,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 48: + { + manualInstanceCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -809,6 +879,86 @@ public Builder clearScalingMode() { return this; } + private int manualInstanceCount_; + /** + * + * + *
+     * Optional. total instance count for the service in manual scaling mode. This
+     * number of instances is divided among all revisions with specified traffic
+     * based on the percent of traffic they are receiving.
+     * 
+ * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualInstanceCount field is set. + */ + @java.lang.Override + public boolean hasManualInstanceCount() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. total instance count for the service in manual scaling mode. This
+     * number of instances is divided among all revisions with specified traffic
+     * based on the percent of traffic they are receiving.
+     * 
+ * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualInstanceCount. + */ + @java.lang.Override + public int getManualInstanceCount() { + return manualInstanceCount_; + } + /** + * + * + *
+     * Optional. total instance count for the service in manual scaling mode. This
+     * number of instances is divided among all revisions with specified traffic
+     * based on the percent of traffic they are receiving.
+     * 
+ * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The manualInstanceCount to set. + * @return This builder for chaining. + */ + public Builder setManualInstanceCount(int value) { + + manualInstanceCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. total instance count for the service in manual scaling mode. This
+     * number of instances is divided among all revisions with specified traffic
+     * based on the percent of traffic they are receiving.
+     * 
+ * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearManualInstanceCount() { + bitField0_ = (bitField0_ & ~0x00000004); + manualInstanceCount_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java index 993a9f27a140..dab82152a4c0 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java @@ -67,4 +67,35 @@ public interface ServiceScalingOrBuilder * @return The scalingMode. */ com.google.cloud.run.v2.ServiceScaling.ScalingMode getScalingMode(); + + /** + * + * + *
+   * Optional. total instance count for the service in manual scaling mode. This
+   * number of instances is divided among all revisions with specified traffic
+   * based on the percent of traffic they are receiving.
+   * 
+ * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualInstanceCount field is set. + */ + boolean hasManualInstanceCount(); + /** + * + * + *
+   * Optional. total instance count for the service in manual scaling mode. This
+   * number of instances is divided among all revisions with specified traffic
+   * based on the percent of traffic they are receiving.
+   * 
+ * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualInstanceCount. + */ + int getManualInstanceCount(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java index 7f9881fc5fa9..84601871c696 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -86,31 +86,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stance_count\030\001 \001(\005B\003\340A\001\022\037\n\022max_instance_" + "count\030\002 \001(\005B\003\340A\001\"E\n\013ServiceMesh\0226\n\004mesh\030" + "\001 \001(\tB(\372A%\n#networkservices.googleapis.c" - + "om/Mesh\"\305\001\n\016ServiceScaling\022\037\n\022min_instan" + + "om/Mesh\"\210\002\n\016ServiceScaling\022\037\n\022min_instan" + "ce_count\030\001 \001(\005B\003\340A\001\022J\n\014scaling_mode\030\003 \001(" + "\0162/.google.cloud.run.v2.ServiceScaling.S" - + "calingModeB\003\340A\001\"F\n\013ScalingMode\022\034\n\030SCALIN" - + "G_MODE_UNSPECIFIED\020\000\022\r\n\tAUTOMATIC\020\001\022\n\n\006M" - + "ANUAL\020\002\"(\n\014NodeSelector\022\030\n\013accelerator\030\001" - + " \001(\tB\003\340A\002*\263\001\n\016IngressTraffic\022\037\n\033INGRESS_" - + "TRAFFIC_UNSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC" - + "_ALL\020\001\022!\n\035INGRESS_TRAFFIC_INTERNAL_ONLY\020" - + "\002\022*\n&INGRESS_TRAFFIC_INTERNAL_LOAD_BALAN" - + "CER\020\003\022\030\n\024INGRESS_TRAFFIC_NONE\020\004*}\n\024Execu" - + "tionEnvironment\022%\n!EXECUTION_ENVIRONMENT" - + "_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRONMENT_" - + "GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN2\020\002*p" - + "\n\035EncryptionKeyRevocationAction\0220\n,ENCRY" - + "PTION_KEY_REVOCATION_ACTION_UNSPECIFIED\020" - + "\000\022\017\n\013PREVENT_NEW\020\001\022\014\n\010SHUTDOWN\020\002B\240\002\n\027com" - + ".google.cloud.run.v2B\023VendorSettingsProt" - + "oP\001Z)cloud.google.com/go/run/apiv2/runpb" - + ";runpb\352Ac\n)binaryauthorization.googleapi" - + "s.com/Policy\022\031projects/{project}/policy\022" - + "\033locations/{location}/policy\352A\\\n#network" - + "services.googleapis.com/Mesh\0225projects/{" - + "project}/locations/{location}/meshes/{me" - + "sh}b\006proto3" + + "calingModeB\003\340A\001\022\'\n\025manual_instance_count" + + "\030\006 \001(\005B\003\340A\001H\000\210\001\001\"F\n\013ScalingMode\022\034\n\030SCALI" + + "NG_MODE_UNSPECIFIED\020\000\022\r\n\tAUTOMATIC\020\001\022\n\n\006" + + "MANUAL\020\002B\030\n\026_manual_instance_count\"(\n\014No" + + "deSelector\022\030\n\013accelerator\030\001 \001(\tB\003\340A\002*\263\001\n" + + "\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_UNSPE" + + "CIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n\035ING" + + "RESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGRESS_" + + "TRAFFIC_INTERNAL_LOAD_BALANCER\020\003\022\030\n\024INGR" + + "ESS_TRAFFIC_NONE\020\004*}\n\024ExecutionEnvironme" + + "nt\022%\n!EXECUTION_ENVIRONMENT_UNSPECIFIED\020" + + "\000\022\036\n\032EXECUTION_ENVIRONMENT_GEN1\020\001\022\036\n\032EXE" + + "CUTION_ENVIRONMENT_GEN2\020\002*p\n\035EncryptionK" + + "eyRevocationAction\0220\n,ENCRYPTION_KEY_REV" + + "OCATION_ACTION_UNSPECIFIED\020\000\022\017\n\013PREVENT_" + + "NEW\020\001\022\014\n\010SHUTDOWN\020\002B\240\002\n\027com.google.cloud" + + ".run.v2B\023VendorSettingsProtoP\001Z)cloud.go" + + "ogle.com/go/run/apiv2/runpb;runpb\352Ac\n)bi" + + "naryauthorization.googleapis.com/Policy\022" + + "\031projects/{project}/policy\022\033locations/{l" + + "ocation}/policy\352A\\\n#networkservices.goog" + + "leapis.com/Mesh\0225projects/{project}/loca" + + "tions/{location}/meshes/{mesh}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -165,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_ServiceScaling_descriptor, new java.lang.String[] { - "MinInstanceCount", "ScalingMode", + "MinInstanceCount", "ScalingMode", "ManualInstanceCount", }); internal_static_google_cloud_run_v2_NodeSelector_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto index 8c38ee81a580..c3995a5f606e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto @@ -158,6 +158,12 @@ message ServiceScaling { // Optional. The scaling mode for the service. ScalingMode scaling_mode = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. total instance count for the service in manual scaling mode. This + // number of instances is divided among all revisions with specified traffic + // based on the percent of traffic they are receiving. + optional int32 manual_instance_count = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Hardware constraints configuration.